mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
_mjit_compile_ivar.rb: use PRIuSIZE
`ic->ic_value.index` is size_t, not always unsigned long.
See also: 443560810 (L2263)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0acb7ce1a8
commit
1b30f57c8f
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@
|
|||
fprintf(f, "{\n");
|
||||
fprintf(f, " VALUE obj = GET_SELF();\n");
|
||||
fprintf(f, " const rb_serial_t ic_serial = (rb_serial_t)%"PRI_SERIALT_PREFIX"u;\n", ic->ic_serial);
|
||||
fprintf(f, " const st_index_t index = %lu;\n", ic->ic_value.index);
|
||||
fprintf(f, " const st_index_t index = %"PRIuSIZE";\n", ic->ic_value.index);
|
||||
% if insn.name == 'setinstancevariable'
|
||||
fprintf(f, " VALUE val = stack[%d];\n", b->stack_size - 1);
|
||||
% end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue