ruby-changes:47078
From: ko1 <ko1@a...>
Date: Wed, 28 Jun 2017 13:57:06 +0900 (JST)
Subject: [ruby-changes:47078] ko1:r59193 (trunk): fix to check thread type
ko1 2017-06-28 13:57:02 +0900 (Wed, 28 Jun 2017) New Revision: 59193 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59193 Log: fix to check thread type Modified files: trunk/vm_core.h Index: vm_core.h =================================================================== --- vm_core.h (revision 59192) +++ vm_core.h (revision 59193) @@ -675,8 +675,7 @@ extern const rb_data_type_t ruby_threadp https://github.com/ruby/ruby/blob/trunk/vm_core.h#L675 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 { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/