X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=src%2Fcommon%2Fhexfile.c;h=c9c7de32ce9e8de8e90a4225254b7d6ea595cc1f;hb=fbbb71d6d8aa93bccc87b17408a89432e4b8161c;hp=b32e671c47b6541ce7d3fbae8819c57de85a1fa5;hpb=87daca654ded1b5b8fd9d041abf5df78fbbae498;p=emu8051.git diff --git a/src/common/hexfile.c b/src/common/hexfile.c index b32e671..c9c7de3 100644 --- a/src/common/hexfile.c +++ b/src/common/hexfile.c @@ -34,11 +34,11 @@ void int2asciihex(int val, char *str, int width) { if (width == 1) - sprintf(str , "%.1X", (u_int8_t) val); + sprintf(str , "%.1X", (uint8_t) val); else if (width == 2) - sprintf(str , "%.2X", (u_int8_t) val); + sprintf(str , "%.2X", (uint8_t) val); else if (width == 4) - sprintf(str , "%.4X", (u_int16_t) val); + sprintf(str , "%.4X", (uint16_t) val); else sprintf(str , "Err"); }