mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Cast up int
instruction code to VALUE
Fix Visual C warnings: ``` iseq.c(3793): warning C4312: 'type cast': conversion from 'int' to 'void *' of greater size iseq.c(3794): warning C4312: 'type cast': conversion from 'int' to 'void *' of greater size ```
This commit is contained in:
parent
f1f0cc14cc
commit
543e3a1896
Notes:
git
2025-06-06 00:31:58 +00:00
1 changed files with 1 additions and 1 deletions
2
iseq.c
2
iseq.c
|
@ -3778,7 +3778,7 @@ rb_vm_encoded_insn_data_table_init(void)
|
|||
const void * const *table = rb_vm_get_insns_address_table();
|
||||
#define INSN_CODE(insn) ((VALUE)table[insn])
|
||||
#else
|
||||
#define INSN_CODE(insn) (insn)
|
||||
#define INSN_CODE(insn) ((VALUE)(insn))
|
||||
#endif
|
||||
encoded_insn_data = st_init_numtable_with_size(VM_BARE_INSTRUCTION_SIZE);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue