1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

fix to check thread type

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2017-06-28 04:57:02 +00:00
parent 249790802d
commit 3462dd3609

View file

@ -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 {