summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorfleuria <[email protected]>2013-08-09 17:38:09 +0800
committerfleuria <[email protected]>2013-08-09 17:38:09 +0800
commitb3b4f2dbdb63d62352058e97c6a8ed5b2c0d7963 (patch)
treee55a066018270ce5a4e1bc0791cae6a4a8e637fc
parent3d3ca985b016afa7d07b59a067a661ce47b221ba (diff)
downloadmruby-b3b4f2dbdb63d62352058e97c6a8ed5b2c0d7963.tar.gz
mruby-b3b4f2dbdb63d62352058e97c6a8ed5b2c0d7963.zip
clean up the warnings when GC_PROFILE is on
-rw-r--r--src/gc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gc.c b/src/gc.c
index 222fc0ce6..ec51fd527 100644
--- a/src/gc.c
+++ b/src/gc.c
@@ -147,9 +147,9 @@ gettimeofday_time(void)
gc_time = gettimeofday_time() - gc_time;\
gc_total_time += gc_time;\
fprintf(stderr, "gc_state: %d\n", mrb->gc_state);\
- fprintf(stderr, "live: %d\n", mrb->live);\
- fprintf(stderr, "majorgc_old_threshold: %d\n", mrb->majorgc_old_threshold);\
- fprintf(stderr, "gc_threshold: %d\n", mrb->gc_threshold);\
+ fprintf(stderr, "live: %zu\n", mrb->live);\
+ fprintf(stderr, "majorgc_old_threshold: %zu\n", mrb->majorgc_old_threshold);\
+ fprintf(stderr, "gc_threshold: %zu\n", mrb->gc_threshold);\
fprintf(stderr, "gc_time: %30.20f\n", gc_time);\
fprintf(stderr, "gc_total_time: %30.20f\n\n", gc_total_time);\
} while(0)