1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Added parentheses to silence sizeof-array-div warnings

As well as 2366c68116.
This commit is contained in:
Nobuyoshi Nakada 2020-12-12 14:22:59 +09:00
parent 9ec6c83c97
commit 9ab6d39a66
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

2
gc.c
View file

@ -6420,7 +6420,7 @@ mark_current_machine_context(rb_objspace_t *objspace, rb_execution_context_t *ec
{
union {
rb_jmp_buf j;
VALUE v[sizeof(rb_jmp_buf) / sizeof(VALUE)];
VALUE v[sizeof(rb_jmp_buf) / (sizeof(VALUE))];
} save_regs_gc_mark;
VALUE *stack_start, *stack_end;