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:
parent
249790802d
commit
3462dd3609
1 changed files with 1 additions and 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 {
|
||||
|
|
Loading…
Reference in a new issue