summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-compiler/core/codegen.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2020-11-29 14:50:22 +0900
committerGitHub <[email protected]>2020-11-29 14:50:22 +0900
commitc6071335a14668bc8f0256739bc74d4a547a38cf (patch)
treecde11dde7763c0c4b0dae7a5496165b6854b43cb /mrbgems/mruby-compiler/core/codegen.c
parent6d07d9b3d7a64834bda8644ab6c4ed1fabe217a4 (diff)
parentb0cea30f3293d0d4d00fee6f8c7a461e64028890 (diff)
downloadmruby-c6071335a14668bc8f0256739bc74d4a547a38cf.tar.gz
mruby-c6071335a14668bc8f0256739bc74d4a547a38cf.zip
Merge pull request #5200 from dearblue/catchhandler32
Change the catch handler address to 32 bits
Diffstat (limited to 'mrbgems/mruby-compiler/core/codegen.c')
-rw-r--r--mrbgems/mruby-compiler/core/codegen.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mrbgems/mruby-compiler/core/codegen.c b/mrbgems/mruby-compiler/core/codegen.c
index 2e39e8930..3e2a98452 100644
--- a/mrbgems/mruby-compiler/core/codegen.c
+++ b/mrbgems/mruby-compiler/core/codegen.c
@@ -3229,9 +3229,9 @@ catch_handler_set(codegen_scope *s, int ent, enum mrb_catch_type type, uint32_t
e = &s->catch_table[ent];
uint8_to_bin(type, &e->type);
- uint16_to_bin(begin, e->begin);
- uint16_to_bin(end, e->end);
- uint16_to_bin(target, e->target);
+ mrb_irep_catch_handler_pack(begin, e->begin);
+ mrb_irep_catch_handler_pack(end, e->end);
+ mrb_irep_catch_handler_pack(target, e->target);
}
static struct RProc*