this is a bit more standards compliant

This commit is contained in:
David Anderson 2006-08-19 22:21:42 +00:00
parent 67f53505ce
commit 8a58dd8806

View File

@ -282,8 +282,7 @@ void AddInt(U **buf_p, size_t &maxlen, int val, int width, int flags)
if (val < 0) if (val < 0)
{ {
/* we want the unsigned version */ /* we want the unsigned version */
val--; unsignedVal = abs(val);
unsignedVal = ~val;
} else { } else {
unsignedVal = val; unsignedVal = val;
} }