Commit 7b7bffd5 authored by kurodash's avatar kurodash

Fixed irep index overflows, when defining new closure.

Issue #1137.
In the present implementation, when calling mrb_load_string continuously, irep is not released.
Therefore, a 16-bit index was overflowing.
parent 39b247ce
......@@ -12,7 +12,7 @@ extern "C" {
#endif
typedef struct mrb_irep {
uint16_t idx;
uint32_t idx;
uint16_t nlocals;
uint16_t nregs;
uint8_t flags;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment