summaryrefslogtreecommitdiff
path: root/iseq.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-08-29 03:54:35 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-08-29 03:54:35 +0000
commit442e8a238cfdf24a79af882139190e939612c321 (patch)
tree008871c9d989160e6d4ca10bf67f652806b3acd0 /iseq.c
parentc89b18dfd126850d4e9a0824c2a4b8218a7fa308 (diff)
Use PRIdSIZE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'iseq.c')
-rw-r--r--iseq.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/iseq.c b/iseq.c
index b636ae0942..27c4ab7769 100644
--- a/iseq.c
+++ b/iseq.c
@@ -688,8 +688,8 @@ get_line_info(const rb_iseq_t *iseq, size_t pos)
const int debug = 0;
if (debug) {
- printf("size: %d\n", size);
- printf("table[%d]: position: %d, line: %d, pos: %d\n",
+ printf("size: %"PRIdSIZE"\n", size);
+ printf("table[%"PRIdSIZE"]: position: %d, line: %d, pos: %"PRIdSIZE"\n",
i, table[i].position, table[i].line_no, pos);
}
@@ -701,7 +701,7 @@ get_line_info(const rb_iseq_t *iseq, size_t pos)
}
else {
for (i=1; i<size; i++) {
- if (debug) printf("table[%d]: position: %d, line: %d, pos: %d\n",
+ if (debug) printf("table[%"PRIdSIZE"]: position: %d, line: %d, pos: %"PRIdSIZE"\n",
i, table[i].position, table[i].line_no, pos);
if (table[i].position == pos) {