X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/73c04bcfe1096173b00431f0cdc742894b15eef0..b25be06635768807f8f693286fa73bb2297bb06c:/icuSources/samples/uresb/uresb.c?ds=inline diff --git a/icuSources/samples/uresb/uresb.c b/icuSources/samples/uresb/uresb.c index db2d5789..e1930503 100644 --- a/icuSources/samples/uresb/uresb.c +++ b/icuSources/samples/uresb/uresb.c @@ -1,7 +1,7 @@ /* ******************************************************************************* * -* Copyright (C) 1999-2005, International Business Machines +* Copyright (C) 1999-2007, International Business Machines * Corporation and others. All Rights Reserved. * ******************************************************************************* @@ -58,7 +58,7 @@ void reportError(UErrorCode *status); static UChar *quotedString(const UChar *string); void printOutBundle(UFILE *out, UResourceBundle *resource, int32_t indent, UErrorCode *status); void printIndent(UFILE *out, int32_t indent); -void printHex(UFILE *out, const uint8_t *what); +void printHex(UFILE *out, const int8_t *what); static UOption options[]={ UOPTION_HELP_H, @@ -178,8 +178,8 @@ void printIndent(UFILE *out, int32_t indent) { u_fprintf(out, "%s", inchar); } -void printHex(UFILE *out, const uint8_t *what) { - u_fprintf(out, "%02X", *what); +void printHex(UFILE *out, const int8_t *what) { + u_fprintf(out, "%02X", (uint8_t)*what); } static UChar *quotedString(const UChar *string) { @@ -378,4 +378,3 @@ const UChar *getErrorName(UErrorCode errorNumber) { } } -