Skip to content

Commit e8a5c7b

Browse files
authored
Merge pull request ruby#124 from Shopify/yjit-fix-struct
rb_struct_define_under needs a trailing NULL
2 parents fb22348 + 19e95d5 commit e8a5c7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

yjit_iface.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1035,7 +1035,7 @@ rb_yjit_init(struct rb_yjit_options *options)
10351035
rb_define_method(cYjitDisasm, "disasm", yjit_disasm, 2);
10361036
cYjitDisasmInsn = rb_struct_define_under(cYjitDisasm, "Insn", "address", "mnemonic", "op_str", NULL);
10371037
#if RUBY_DEBUG
1038-
cYjitCodeComment = rb_struct_define_under(cYjitDisasm, "Comment", "address", "comment");
1038+
cYjitCodeComment = rb_struct_define_under(cYjitDisasm, "Comment", "address", "comment", NULL);
10391039
#endif
10401040
#endif
10411041

0 commit comments

Comments
 (0)