diff options
| author | dearblue <[email protected]> | 2021-01-10 10:00:26 +0900 |
|---|---|---|
| committer | dearblue <[email protected]> | 2021-01-10 13:22:28 +0900 |
| commit | b210cfa34ea9e0d288d35b3c9b78c98d33f25dae (patch) | |
| tree | b82d138ea048972dc3de36fd1fd63882f8cf7c9d /include/mruby.h | |
| parent | 6f6eabf05adbfd7b9041eac6c4678bc9851c13c6 (diff) | |
| download | mruby-b210cfa34ea9e0d288d35b3c9b78c98d33f25dae.tar.gz mruby-b210cfa34ea9e0d288d35b3c9b78c98d33f25dae.zip | |
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).
Diffstat (limited to 'include/mruby.h')
| -rw-r--r-- | include/mruby.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/mruby.h b/include/mruby.h index ccb76ebe4..79eb5e26f 100644 --- a/include/mruby.h +++ b/include/mruby.h @@ -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; |
