mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
error.c: (mrb_exc_new) use mrb_int instead of size_t.
This commit is contained in:
+1
-1
@@ -59,7 +59,7 @@ mrb_exc_new_str(mrb_state *mrb, struct RClass* c, mrb_value str)
|
||||
}
|
||||
|
||||
MRB_API mrb_value
|
||||
mrb_exc_new(mrb_state *mrb, struct RClass *c, const char *ptr, size_t len)
|
||||
mrb_exc_new(mrb_state *mrb, struct RClass *c, const char *ptr, mrb_int len)
|
||||
{
|
||||
return mrb_exc_new_str(mrb, c, mrb_str_new(mrb, ptr, len));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user