diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-06-28 04:57:02 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-06-28 04:57:02 +0000 |
commit | 3462dd360968c2186bd54a2035acf2d525295130 (patch) | |
tree | 2d22b49346fb06861ff6616de285a0c07074ed04 | |
parent | 249790802db62ff22c79830d4054c449fa3c243b (diff) | |
download | ruby-3462dd360968c2186bd54a2035acf2d525295130.tar.gz |
fix to check thread type
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | vm_core.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 { |