diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-06-11 12:31:49 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-06-11 16:44:47 +0900 |
| commit | f7777f64e6f8bbbe7048306e2834eb5726d2676b (patch) | |
| tree | 86706f3213854e7b2319ad71c455f519a59fd7bb /src/vm.c | |
| parent | 49af1fca03173f415c5634dafdce3ee81cc01401 (diff) | |
| download | mruby-f7777f64e6f8bbbe7048306e2834eb5726d2676b.tar.gz mruby-f7777f64e6f8bbbe7048306e2834eb5726d2676b.zip | |
codegen.c: refactor `readint()`
* renamed from redundant `readint_mrb_int()`
* supports only base upto 16
* no base validation (already done in parser)
* no negative read (negate after read)
* overflow detection using `mrb_int_{mul,add}_overflow()`
Diffstat (limited to 'src/vm.c')
0 files changed, 0 insertions, 0 deletions
