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)
{
/* we want the unsigned version */
val--;
unsignedVal = ~val;
unsignedVal = abs(val);
} else {
unsignedVal = val;
}