Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Commit 743a3fc

Browse files
author
Anselm Kruis
committed
Stackless issue #278: implement switching using the Stackman submodule
Fix compiling with clang.
1 parent 54ba7b1 commit 743a3fc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Stackless/platf/switch_stackman.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@
2121
static int slp_stackman_cb_save(void *sp, intptr_t *pdiff)
2222
{
2323
intptr_t diff;
24+
intptr_t *sp_as_intptr = sp;
2425
/* first argument must be a pointer to a "stack word", not a void* */
25-
SLP_SAVE_STATE(((intptr_t *)sp), diff);
26+
SLP_SAVE_STATE(sp_as_intptr, diff);
2627
*pdiff = diff;
2728
return 1;
2829
}

0 commit comments

Comments
 (0)