diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-10-13 14:07:22 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-10-13 14:07:22 +0000 |
commit | e69bba13a0d064bfda1dbcfd27ef07e21bf70bb6 (patch) | |
tree | 7822504300f35ab7630e71ac81519c62c5105af7 /iseq.c | |
parent | 9d0c732f0d6bd6927a8385c12312d9e054712958 (diff) | |
download | ruby-e69bba13a0d064bfda1dbcfd27ef07e21bf70bb6.tar.gz |
* iseq.c (insn_operand_intern, rb_iseq_disasm): fix format specifiers.
* vm.c (thread_free): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'iseq.c')
-rw-r--r-- | iseq.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -739,11 +739,11 @@ insn_operand_intern(rb_iseq_t *iseq, switch (type) { case TS_OFFSET: /* LONG */ - ret = rb_sprintf("%ld", pos + len + op); + ret = rb_sprintf("%"PRIdSIZE, pos + len + op); break; case TS_NUM: /* ULONG */ - ret = rb_sprintf("%lu", op); + ret = rb_sprintf("%"PRIuVALUE, op); break; case TS_LINDEX: @@ -985,7 +985,7 @@ rb_iseq_disasm(VALUE self) int argc = iseqdat->argc; int opts = iseqdat->arg_opts; if (i >= argc && i < argc + opts - 1) { - snprintf(opti, sizeof(opti), "Opt=%ld", + snprintf(opti, sizeof(opti), "Opt=%"PRIdVALUE, iseqdat->arg_opt_table[i - argc]); } } |