From c138d7ef0a2365fd7da6a6374f9fa607633f07d5 Mon Sep 17 00:00:00 2001 From: Yukihiro Matsumoto Date: Sat, 21 Apr 2012 00:51:20 +0900 Subject: use %zd for size_t argument --- src/cdump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cdump.c') diff --git a/src/cdump.c b/src/cdump.c index 74365b090..424b4f69b 100644 --- a/src/cdump.c +++ b/src/cdump.c @@ -140,7 +140,7 @@ make_cdump_irep(mrb_state *mrb, int irep_no, FILE *f) } } memset(buf, 0, buf_len); - SOURCE_CODE(" irep->pool[%d] = mrb_str_new(mrb, \"%s\", %d);", n, str_to_format(irep->pool[n], buf), RSTRING_LEN(irep->pool[n])); break; + SOURCE_CODE(" irep->pool[%d] = mrb_str_new(mrb, \"%s\", %zd);", n, str_to_format(irep->pool[n], buf), RSTRING_LEN(irep->pool[n])); break; /* TODO MRB_TT_REGEX */ default: break; } -- cgit v1.2.3