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

Get rid of type aliasing

This commit is contained in:
Nobuyoshi Nakada 2022-04-07 19:07:24 +09:00
parent 23090cf681
commit 9e58c3c519
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -159,10 +159,10 @@ static void *new_thread_check(void *args) {
static VALUE thread_spec_ruby_native_thread_p_new_thread(VALUE self) {
#ifndef _WIN32
pthread_t t;
VALUE *result = &true_result;
void *result = &true_result;
pthread_create(&t, NULL, new_thread_check, NULL);
pthread_join(t, (void **)&result);
return *result;
pthread_join(t, &result);
return *(VALUE *)result;
#else
return Qfalse;
#endif