diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-06-05 21:00:36 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-06-09 22:42:38 +0900 |
| commit | 7f593893e8b868026a61adfe64f602b6a5644511 (patch) | |
| tree | 83f21a1dc378f0f37828bc98fe76d1a66bdf2b10 /mrbgems/mruby-compiler/core | |
| parent | 5d5b1d1f3c9a72c2154a9416cd95500a1c17dd79 (diff) | |
| download | mruby-7f593893e8b868026a61adfe64f602b6a5644511.tar.gz mruby-7f593893e8b868026a61adfe64f602b6a5644511.zip | |
Update `OP_HASH` generation to support big hash creation.
Diffstat (limited to 'mrbgems/mruby-compiler/core')
| -rw-r--r-- | mrbgems/mruby-compiler/core/codegen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-compiler/core/codegen.c b/mrbgems/mruby-compiler/core/codegen.c index da598adaf..c64ffc473 100644 --- a/mrbgems/mruby-compiler/core/codegen.c +++ b/mrbgems/mruby-compiler/core/codegen.c @@ -1889,7 +1889,7 @@ codegen(codegen_scope *s, node *tree, int val) len++; } tree = tree->cdr; - if (val && len == 255) { + if (val && cursp() > 127) { pop_n(len*2); if (!update) { genop_2(s, OP_HASH, cursp(), len); |
