diff options
author | Nobuyoshi Nakada <[email protected]> | 2019-11-28 10:52:33 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2019-11-28 10:53:26 +0900 |
commit | c688026455a3a37b233333aa90bdd4633b3e6a91 (patch) | |
tree | 1a0f389ea66bbdfba031a68a748342decb204fbe | |
parent | abe8fb49f0365c23df06857549b7a3a32d212ed5 (diff) |
Suppress strict-aliasing warning by x86_64-w64-mingw32-gcc 7.4.0
-rw-r--r-- | cont.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) { |