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

Fix rb_thread_create argument type

in response to the declaration change in
e3fc30564e.

Fixing the AppVeyor mswin CI failure:
https://ci.appveyor.com/project/ruby/ruby/builds/26980881/job/2j6h1qwjnbc8cpop

ref: https://github.com/ruby/ruby/pull/2404
This commit is contained in:
Takashi Kokubun 2019-08-27 23:41:51 +09:00
parent d806078237
commit eaff19de2b
No known key found for this signature in database
GPG key ID: 6FFC433B12EE23DD

View file

@ -125,7 +125,7 @@ static VALUE thread_spec_rb_thread_create(VALUE self, VALUE proc, VALUE arg) {
rb_ary_push(args, proc);
rb_ary_push(args, arg);
return rb_thread_create(thread_spec_call_proc, (void*)args);
return rb_thread_create((VALUE (*)(void *))thread_spec_call_proc, (void*)args);
}