summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2013-08-09 07:59:09 -0700
committerYukihiro "Matz" Matsumoto <[email protected]>2013-08-09 07:59:09 -0700
commitf6fa07235bad547cc35d54d878c7d3df6f9ccae9 (patch)
tree55fa7bb3eb23b923b0cbfdb09e272e9bd13dec25
parent53f750dbed85bdf7342d5c4b1bc013c3169c15d6 (diff)
parentb3b4f2dbdb63d62352058e97c6a8ed5b2c0d7963 (diff)
downloadmruby-f6fa07235bad547cc35d54d878c7d3df6f9ccae9.tar.gz
mruby-f6fa07235bad547cc35d54d878c7d3df6f9ccae9.zip
Merge pull request #1450 from Fleurer/cleanup-warninigs
clean up the warnings when GC_PROFILE is set
-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)