aboutsummaryrefslogtreecommitdiffstats
path: root/mjit.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-06 01:42:38 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-06 01:42:38 +0000
commit1f003810c22ca758bcf9c83b2f1f4755d74c47e1 (patch)
tree72fcb2d6255c95ed6d0dcefe2461d5b826482de5 /mjit.c
parent75ffce28637a0d0d510dcd99ba90df38000b4be5 (diff)
downloadruby-1f003810c22ca758bcf9c83b2f1f4755d74c47e1.tar.gz
thread_pthread.c: cast inside rb_thread_create_mjit_thread
* thread_pthread.c (rb_thread_create_mjit_thread): cast worker_func pointer to void pointer inside. adjusted to the declaration in mjit.c and the definition in thread_win32.c. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62242 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'mjit.c')
-rw-r--r--mjit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mjit.c b/mjit.c
index 5632f633db..a02a020507 100644
--- a/mjit.c
+++ b/mjit.c
@@ -1198,7 +1198,7 @@ mjit_init(struct mjit_options *opts)
/* Initialize worker thread */
finish_worker_p = FALSE;
worker_finished = FALSE;
- if (rb_thread_create_mjit_thread(child_after_fork, (void *)worker) == FALSE) {
+ if (!rb_thread_create_mjit_thread(child_after_fork, worker)) {
mjit_init_p = FALSE;
rb_native_mutex_destroy(&mjit_engine_mutex);
rb_native_cond_destroy(&mjit_pch_wakeup);