Get rid of type aliasing
This commit is contained in:
parent
23090cf681
commit
9e58c3c519
@ -159,10 +159,10 @@ static void *new_thread_check(void *args) {
|
|||||||
static VALUE thread_spec_ruby_native_thread_p_new_thread(VALUE self) {
|
static VALUE thread_spec_ruby_native_thread_p_new_thread(VALUE self) {
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
pthread_t t;
|
pthread_t t;
|
||||||
VALUE *result = &true_result;
|
void *result = &true_result;
|
||||||
pthread_create(&t, NULL, new_thread_check, NULL);
|
pthread_create(&t, NULL, new_thread_check, NULL);
|
||||||
pthread_join(t, (void **)&result);
|
pthread_join(t, &result);
|
||||||
return *result;
|
return *(VALUE *)result;
|
||||||
#else
|
#else
|
||||||
return Qfalse;
|
return Qfalse;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user