Bell 32V release
[unix-history] / usr / src / cmd / units.c
index 2822c15..2cb4996 100644 (file)
@@ -443,6 +443,7 @@ char *name;
        np = name;
        while(*np)
                h = h*57 + *np++ - '0';
        np = name;
        while(*np)
                h = h*57 + *np++ - '0';
+       if( ((int)h)<0) h= -(int)h;
        h %= NTAB;
        tp = &table[h];
 l0:
        h %= NTAB;
        tp = &table[h];
 l0: