1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-08 12:40:49 -08:00

Avoid possible type pun hazard of jump buffer by casting to void *.

Copied from Perforce
 Change: 189318
 ServerID: perforce.ravenbrook.com
This commit is contained in:
Richard Brooksby 2016-02-18 21:18:05 +00:00
parent 0245c09885
commit ed561e855a

View file

@ -26,7 +26,7 @@ Res StackScan(ScanState ss, Word *stackBot,
void *closure, size_t closure_size)
{
jmp_buf jb;
Word *stackTop = (Word *)&jb;
Word *stackTop = (void *)&jb;
/* .assume.stack: This implementation assumes that the stack grows
* downwards, so that the address of the jmp_buf is the limit of the