Changeset 4671 for zzuf


Ignore:
Timestamp:
Oct 6, 2010, 11:08:28 PM (9 years ago)
Author:
Sam Hocevar
Message:

Treat %x arguments as unsigned in the printf reimplementation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/src/libzzuf/debug.c

    r4670 r4671  
    157157        else if(*f == 'x')
    158158        {
    159             int i = va_arg(args, int);
    160             append("WHUT", 4);
    161             WRITE_INT(i, 10);
     159            unsigned int i = va_arg(args, unsigned int);
     160            WRITE_INT(i, 16);
    162161        }
    163162        else if(f[0] == 'l' && (f[1] == 'i' || f[1] == 'd'))
Note: See TracChangeset for help on using the changeset viewer.