summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/thread.c b/thread.c
index 433e7be4fb..3365a55020 100644
--- a/thread.c
+++ b/thread.c
@@ -1360,9 +1360,11 @@ rb_threadptr_execute_interrupts(rb_thread_t *th)
}
void
-rb_thread_execute_interrupts(VALUE th)
+rb_thread_execute_interrupts(VALUE thval)
{
- rb_threadptr_execute_interrupts_rec((rb_thread_t *)th, 0);
+ rb_thread_t *th;
+ GetThreadPtr(thval, th);
+ rb_threadptr_execute_interrupts_rec(th, 0);
}
void