From 2970b6aadbb0d5afef683854e0fe36b05024fc36 Mon Sep 17 00:00:00 2001 From: Yukihiro Matsumoto Date: Tue, 24 Apr 2012 16:03:42 +0900 Subject: change type of RString.size from size_t to long --- 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 d48139664..131a9891a 100644 --- a/src/cdump.c +++ b/src/cdump.c @@ -146,7 +146,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\", %zd);", n, str_to_format(irep->pool[n], buf), RSTRING_LEN(irep->pool[n])); break; + SOURCE_CODE(" irep->pool[%d] = mrb_str_new(mrb, \"%s\", %ld);", n, str_to_format(irep->pool[n], buf), RSTRING_LEN(irep->pool[n])); break; /* TODO MRB_TT_REGEX */ default: break; } -- cgit v1.2.3