projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
BSD 3 development
[unix-history]
/
usr
/
src
/
cmd
/
units.c
diff --git
a/usr/src/cmd/units.c
b/usr/src/cmd/units.c
index
2822c15
..
2cb4996
100644
(file)
--- a/
usr/src/cmd/units.c
+++ b/
usr/src/cmd/units.c
@@
-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: