error.c: (mrb_exc_new) use mrb_int instead of size_t.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2022-03-03 11:48:31 +09:00
parent b6531fa691
commit ef3a56c92b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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));
}