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

Suppress strict-aliasing warning by x86_64-w64-mingw32-gcc 7.4.0

This commit is contained in:
Nobuyoshi Nakada 2019-11-28 10:52:33 +09:00
parent abe8fb49f0
commit c688026455
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

4
cont.c
View file

@ -1336,8 +1336,8 @@ cont_restore_1(rb_context_t *cont)
/* workaround for x64 SEH */
jmp_buf buf;
setjmp(buf);
((_JUMP_BUFFER*)(&cont->jmpbuf))->Frame =
((_JUMP_BUFFER*)(&buf))->Frame;
_JUMP_BUFFER *bp = (void*)&cont->jmpbuf;
bp->Frame = ((_JUMP_BUFFER*)((void*)&buf))->Frame;
}
#endif
if (cont->machine.stack_src) {