summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorYukihiro Matsumoto <[email protected]>2012-04-21 00:51:20 +0900
committerYukihiro Matsumoto <[email protected]>2012-04-21 00:51:20 +0900
commitc138d7ef0a2365fd7da6a6374f9fa607633f07d5 (patch)
treef47d780fb6263627c89b07e5aa1a995695371758 /src
parent2dd08ef2ec27c69edf7c2eed188ec69f42048a02 (diff)
downloadmruby-c138d7ef0a2365fd7da6a6374f9fa607633f07d5.tar.gz
mruby-c138d7ef0a2365fd7da6a6374f9fa607633f07d5.zip
use %zd for size_t argument
Diffstat (limited to 'src')
-rw-r--r--src/cdump.c2
1 files changed, 1 insertions, 1 deletions
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;
}