Commit 2f4ab261 authored by Niels Möller's avatar Niels Möller
Browse files

* src/werror.c (werror_hex): Bugfix.

Rev: src/werror.c:1.30
parent 92419438
......@@ -173,7 +173,7 @@ static void werror_hex(UINT32 n)
unsigned left = 8;
while ( (left > 1)
&& (n & 0xf0000000UL))
&& !(n & 0xf0000000UL))
{
left --;
n <<= 4;
......@@ -433,7 +433,7 @@ static unsigned format_size_in_hex(UINT32 n)
#define SIZE (sizeof(powers) / sizeof(powers[0]))
/* Determine the smallest e such that n < 10^e */
/* Determine the smallest e such that n < 16^e */
for (i = SIZE - 1 , e = 0; i >= 0; i--)
{
if (n >= powers[i])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment