From 3462dd360968c2186bd54a2035acf2d525295130 Mon Sep 17 00:00:00 2001 From: ko1 Date: Wed, 28 Jun 2017 04:57:02 +0000 Subject: fix to check thread type git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_core.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'vm_core.h') 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 { -- cgit v1.2.3