mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
mruby-test-inline-struct/inline.c: add type cast from void* to char*.
This commit is contained in:
@@ -63,7 +63,7 @@ istruct_test_test_receive_direct(mrb_state *mrb, mrb_value self)
|
||||
you need to care about class replacing.
|
||||
See mrbgem/mruby-random/src/random.c for detail */
|
||||
if (mrb_istruct_p(is) && mrb_obj_is_kind_of(mrb, is, klass)) {
|
||||
char *ptr = mrb_istruct_ptr(is);;
|
||||
char *ptr = (char*)mrb_istruct_ptr(is);;
|
||||
return mrb_bool_value(ptr[0] == 's');
|
||||
}
|
||||
mrb_raise(mrb, E_TYPE_ERROR, "InlineStructTest");
|
||||
|
||||
Reference in New Issue
Block a user