diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-04-07 19:07:24 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-04-07 19:07:24 +0900 |
commit | 9e58c3c5195f0745ba7f125a3478046c5eb3acd7 (patch) | |
tree | e867a5935c8be30805f15ceacefa68c86d8420e7 /spec | |
parent | 23090cf681cd4f92fdbe4c1bdea50ccf403ea4c6 (diff) |
Get rid of type aliasing
Diffstat (limited to 'spec')
-rw-r--r-- | spec/ruby/optional/capi/ext/thread_spec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/ruby/optional/capi/ext/thread_spec.c b/spec/ruby/optional/capi/ext/thread_spec.c index 80e9392488..be812d796f 100644 --- a/spec/ruby/optional/capi/ext/thread_spec.c +++ b/spec/ruby/optional/capi/ext/thread_spec.c @@ -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 |