diff options
| author | Mistivia <i@mistivia.com> | 2025-06-09 17:54:55 +0800 |
|---|---|---|
| committer | Mistivia <i@mistivia.com> | 2025-06-09 17:55:13 +0800 |
| commit | 2f0781104330d1ae4fae041560ee3a5cb892c3b6 (patch) | |
| tree | e43dfccb7ea1b0ab13a659ed4fce05acb2cb13b5 /src/basic_traits.c | |
| parent | a690e564d82a46c4e729d88fcc660e4e2f1e6ceb (diff) | |
genenric tree map
Diffstat (limited to 'src/basic_traits.c')
| -rw-r--r-- | src/basic_traits.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/basic_traits.c b/src/basic_traits.c index b7c4d3a..5d2a8fb 100644 --- a/src/basic_traits.c +++ b/src/basic_traits.c @@ -1,6 +1,7 @@ #include "basic_traits.h" #include <string.h> +#include <inttypes.h> #include "mmhash.h" @@ -35,16 +36,16 @@ void Bool_show(Bool self, FILE* fp) { else fprintf(fp, "false"); } void Int_show(Int self, FILE* fp) { - fprintf(fp, "%d", self); + fprintf(fp, "%"PRId32, self); } void Long_show(Long self, FILE* fp) { - fprintf(fp, "%lld", self); + fprintf(fp, "%"PRId64, self); } void UInt_show(UInt self, FILE* fp) { - fprintf(fp, "%ud", self); + fprintf(fp, "%"PRIu32, self); } void ULong_show(ULong self, FILE* fp) { - fprintf(fp, "%llud", self); + fprintf(fp, "%"PRIu64, self); } void VoidPtr_show(VoidPtr self, FILE* fp) { fprintf(fp, "%p", self); |
