diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-03-12 16:21:32 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-03-12 16:21:32 +0900 |
| commit | 4ae5ae353564291cdb28108c26382c32242966a8 (patch) | |
| tree | 6cb495e5c3c59a0c9f46b8e4548f17e7082443d2 /include | |
| parent | 84e27d3b519d8fba87c6ffdf318ccadf67d5318f (diff) | |
| download | mruby-4ae5ae353564291cdb28108c26382c32242966a8.tar.gz mruby-4ae5ae353564291cdb28108c26382c32242966a8.zip | |
codegen.c: no integer overflow error in `codegen`; close #5376
Add new pool value type `IREP_TT_BIGINT` and generate integer overflow
error in the VM. In the future, `mruby` will support `Bignum` for
integers bigger than `mrb_int` (probably using `mpz`).
Diffstat (limited to 'include')
| -rw-r--r-- | include/mruby/irep.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mruby/irep.h b/include/mruby/irep.h index 640b0177f..d2ea202db 100644 --- a/include/mruby/irep.h +++ b/include/mruby/irep.h @@ -20,6 +20,7 @@ enum irep_pool_type { IREP_TT_SSTR = 2, /* string (static) */ IREP_TT_INT32 = 1, /* 32bit integer */ IREP_TT_INT64 = 3, /* 64bit integer */ + IREP_TT_BIGINT = 7, /* big integer (not yet supported) */ IREP_TT_FLOAT = 5, /* float (double/float) */ }; |
