summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/vm_core.h b/vm_core.h
index da2236e581..29cb0ad73a 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -675,8 +675,7 @@ extern const rb_data_type_t ruby_threadptr_data_type;
static inline struct rb_thread_struct *
rb_thread_ptr(VALUE thval)
{
- VM_ASSERT(rb_check_typeddata(obj, &ruby_threadptr_data_type) != NULL);
- return (struct rb_thread_struct *)DATA_PTR(thval);
+ return (struct rb_thread_struct *)rb_check_typeddata(thval, &ruby_threadptr_data_type);
}
enum rb_thread_status {