Skip to content

Commit

Permalink
Fix rb_thread_create argument type
Browse files Browse the repository at this point in the history
in response to the declaration change in
e3fc30564e9466d6926f9d25a090dcf787bd5c33.

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

ref: ruby/ruby#2404
  • Loading branch information
k0kubun committed Aug 27, 2019
1 parent 782b578 commit f89e9ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optional/capi/ext/thread_spec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}


Expand Down

0 comments on commit f89e9ba

Please sign in to comment.