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:
parent
0245c09885
commit
ed561e855a
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue