summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2020-10-21 18:36:06 +0200
committerTyge Løvset <[email protected]>2020-10-21 18:36:06 +0200
commit477bc1e22461d8edb2582709ffa353fd37058927 (patch)
tree026cc7e5325a961b408e226057ad33ae0c8a2891
parent615559a3834044ba4a56e8d896ebead4a3c8fed9 (diff)
downloadSTC-modified-477bc1e22461d8edb2582709ffa353fd37058927.tar.gz
STC-modified-477bc1e22461d8edb2582709ffa353fd37058927.zip
Reverted to print chars as chars not numbers. signed char will show as char on VC, gcc/clang/tinyc shows as number.
-rw-r--r--stc/cfmt.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/stc/cfmt.h b/stc/cfmt.h
index 8e13e778..cb05831a 100644
--- a/stc/cfmt.h
+++ b/stc/cfmt.h
@@ -41,9 +41,9 @@ _cfmt_conv(const char *fmt, ...);
cstr_t *: cstr_fmt)
#if defined(_MSC_VER) && !defined(__clang__)
-# define _cfmt_uschar() char: "hhd", unsigned char: "hhu"
+# define _cfmt_uschar() char: "c", unsigned char: "hhu"
#else
-# define _cfmt_uschar() char: "hhd", signed char: "hhd", unsigned char: "hhu"
+# define _cfmt_uschar() char: "c", signed char: "hhd", unsigned char: "hhu"
#endif
#define _cfmt(x) _Generic ((x), \