From ed561e855a2944d6462c3b519dc92c6988e6ce4f Mon Sep 17 00:00:00 2001 From: Richard Brooksby Date: Thu, 18 Feb 2016 21:18:05 +0000 Subject: [PATCH] Avoid possible type pun hazard of jump buffer by casting to void *. Copied from Perforce Change: 189318 ServerID: perforce.ravenbrook.com --- mps/code/ssan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mps/code/ssan.c b/mps/code/ssan.c index 3011eba756f..6d9cc0ff08e 100644 --- a/mps/code/ssan.c +++ b/mps/code/ssan.c @@ -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