Silly of me to overlook it: another obvious way you might like to
[sgt/charset] / cstable.c
index 509923a..f08607e 100644 (file)
--- a/cstable.c
+++ b/cstable.c
@@ -46,7 +46,7 @@ int main(int argc, char **argv)
        int i, plane, row, col, chr;
        char const *sep = "";
 
-       printf("U+%04x:", c);
+       printf("U+%04x:", (unsigned)c);
 
        /*
         * Look up in SBCSes.