From 8c80b6ef5ba5bc9682e2f6d805bdcb4ae315c732 Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Sun, 22 Jun 2014 20:09:38 +0900 Subject: [PATCH] use "%zu"s for size_t --- src/codegen.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/codegen.c b/src/codegen.c index 63abd247..f18062b0 100644 --- a/src/codegen.c +++ b/src/codegen.c @@ -1442,13 +1442,13 @@ pic_compile(pic_state *pic, pic_value obj) size_t ai = pic_gc_arena_preserve(pic); #if DEBUG - fprintf(stdout, "ai = %d\n", pic_gc_arena_preserve(pic)); + fprintf(stdout, "ai = %zu\n", pic_gc_arena_preserve(pic)); fprintf(stdout, "# input expression\n"); pic_debug(pic, obj); fprintf(stdout, "\n"); - fprintf(stdout, "ai = %d\n", pic_gc_arena_preserve(pic)); + fprintf(stdout, "ai = %zu\n", pic_gc_arena_preserve(pic)); #endif /* macroexpand */ @@ -1457,7 +1457,7 @@ pic_compile(pic_state *pic, pic_value obj) fprintf(stdout, "## macroexpand completed\n"); pic_debug(pic, obj); fprintf(stdout, "\n"); - fprintf(stdout, "ai = %d\n", pic_gc_arena_preserve(pic)); + fprintf(stdout, "ai = %zu\n", pic_gc_arena_preserve(pic)); #endif /* analyze */ @@ -1466,7 +1466,7 @@ pic_compile(pic_state *pic, pic_value obj) fprintf(stdout, "## analyzer completed\n"); pic_debug(pic, obj); fprintf(stdout, "\n"); - fprintf(stdout, "ai = %d\n", pic_gc_arena_preserve(pic)); + fprintf(stdout, "ai = %zu\n", pic_gc_arena_preserve(pic)); #endif /* codegen */