summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorkurodash <[email protected]>2013-04-12 16:32:07 +0900
committerkurodash <[email protected]>2013-04-12 16:32:07 +0900
commit7b7bffd5a82200338d4bef2d5891c7c2485a0f9a (patch)
tree2a6ec06f8450d6cdceb77574e10f175b13281c1b /include
parent39b247ce2675b08d2efaf55a35cde5bb668dfe4a (diff)
downloadmruby-7b7bffd5a82200338d4bef2d5891c7c2485a0f9a.tar.gz
mruby-7b7bffd5a82200338d4bef2d5891c7c2485a0f9a.zip
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.
Diffstat (limited to 'include')
-rw-r--r--include/mruby/irep.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mruby/irep.h b/include/mruby/irep.h
index 0305b9e0b..856b12099 100644
--- a/include/mruby/irep.h
+++ b/include/mruby/irep.h
@@ -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;