this is a bit more standards compliant
This commit is contained in:
parent
67f53505ce
commit
8a58dd8806
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user