From 4ae5ae353564291cdb28108c26382c32242966a8 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Fri, 12 Mar 2021 16:21:32 +0900 Subject: 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`). --- include/mruby/irep.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') 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) */ }; -- cgit v1.2.3