summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {