summaryrefslogtreecommitdiff
path: root/src/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/eval.c b/src/eval.c
index 68a3691ad9b..b8a61590387 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -3484,11 +3484,11 @@ unbind_to (ptrdiff_t count, Lisp_Object value)
}
void
-unbind_for_thread_switch (void)
+unbind_for_thread_switch (struct thread_state *thr)
{
union specbinding *bind;
- for (bind = specpdl_ptr; bind != specpdl; --bind)
+ for (bind = thr->m_specpdl_ptr; bind != thr->m_specpdl; --bind)
{
if (bind->kind >= SPECPDL_LET)
{