diff options
Diffstat (limited to 'thread_pthread.c')
-rw-r--r-- | thread_pthread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/thread_pthread.c b/thread_pthread.c index 6bcb18d89b..f5eebf5b58 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -1622,7 +1622,7 @@ native_set_another_thread_name(rb_nativethread_id_t thread_id, VALUE name) char buf[thread_name_max]; const char *s = ""; # if !defined SET_ANOTHER_THREAD_NAME - if (pthread_equal(pthread_self(), thread_id)) return; + if (!pthread_equal(pthread_self(), thread_id)) return; # endif if (!NIL_P(name)) { long n; |