diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2010-05-04 19:45:35 +0200 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2010-05-04 19:45:35 +0200 |
commit | f31784859de08fc05b8a744e7fe8d713693734b9 (patch) | |
tree | 2a308acb3c6530f05a5c0b30ffabc30fbd1abe55 /utf8.c | |
parent | 9ca2a9c5ceaabb9f5db53ae85ab1179dbd6e4d2b (diff) |
fixed lots of gcc warnings
Diffstat (limited to 'utf8.c')
-rw-r--r-- | utf8.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -352,7 +352,7 @@ int u8_escape_wchar(char *buf, int32_t sz, uint32_t ch) else if (ch < 32 || ch == 0x7f) return snprintf(buf, sz, "\\x%hhX", (unsigned char)ch); else if (ch > 0xFFFF) - return snprintf(buf, sz, "\\U%.8lX", (uint32_t)ch); + return snprintf(buf, sz, "\\U%.8X", (uint32_t)ch); else if (ch >= 0x80 && ch <= 0xFFFF) return snprintf(buf, sz, "\\u%.4hX", (unsigned short)ch); |