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.
This commit is contained in:
kurodash
2013-04-12 16:32:07 +09:00
parent 39b247ce26
commit 7b7bffd5a8
+1 -1
View File
@@ -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;