Use uint16_t for argc and acc of mrb_callinfo

This is because it is enough to express the range up to (-1..255) or (-3..255).
This commit is contained in:
dearblue
2021-01-10 10:00:26 +09:00
parent 6f6eabf05a
commit b210cfa34e
+2 -2
View File
@@ -155,8 +155,8 @@ typedef struct {
struct REnv *env;
const mrb_code *pc; /* return address */
const mrb_code *err; /* error position */
mrb_int argc;
mrb_int acc;
int16_t argc;
int16_t acc;
struct RClass *target_class;
} mrb_callinfo;