mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Use PRIdSIZE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c89b18dfd1
commit
442e8a238c
1 changed files with 3 additions and 3 deletions
6
iseq.c
6
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) {
|
||||
|
|
Loading…
Reference in a new issue