Suppress strict-aliasing warning by x86_64-w64-mingw32-gcc 7.4.0
This commit is contained in:
parent
abe8fb49f0
commit
c688026455
4
cont.c
4
cont.c
@ -1336,8 +1336,8 @@ cont_restore_1(rb_context_t *cont)
|
|||||||
/* workaround for x64 SEH */
|
/* workaround for x64 SEH */
|
||||||
jmp_buf buf;
|
jmp_buf buf;
|
||||||
setjmp(buf);
|
setjmp(buf);
|
||||||
((_JUMP_BUFFER*)(&cont->jmpbuf))->Frame =
|
_JUMP_BUFFER *bp = (void*)&cont->jmpbuf;
|
||||||
((_JUMP_BUFFER*)(&buf))->Frame;
|
bp->Frame = ((_JUMP_BUFFER*)((void*)&buf))->Frame;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if (cont->machine.stack_src) {
|
if (cont->machine.stack_src) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user