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
@ -675,8 +675,7 @@ extern const rb_data_type_t ruby_threadptr_data_type;
|
|||||||
static inline struct rb_thread_struct *
|
static inline struct rb_thread_struct *
|
||||||
rb_thread_ptr(VALUE thval)
|
rb_thread_ptr(VALUE thval)
|
||||||
{
|
{
|
||||||
VM_ASSERT(rb_check_typeddata(obj, &ruby_threadptr_data_type) != NULL);
|
return (struct rb_thread_struct *)rb_check_typeddata(thval, &ruby_threadptr_data_type);
|
||||||
return (struct rb_thread_struct *)DATA_PTR(thval);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
enum rb_thread_status {
|
enum rb_thread_status {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user