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`).
This commit is contained in:
Yukihiro "Matz" Matsumoto
2021-03-12 16:21:32 +09:00
parent 84e27d3b51
commit 4ae5ae3535
7 changed files with 92 additions and 7 deletions
+1
View File
@@ -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) */
};