From 477bc1e22461d8edb2582709ffa353fd37058927 Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Wed, 21 Oct 2020 18:36:06 +0200 Subject: Reverted to print chars as chars not numbers. signed char will show as char on VC, gcc/clang/tinyc shows as number. --- stc/cfmt.h | 4 ++-- 1 file 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), \ -- cgit v1.2.3