summaryrefslogtreecommitdiffhomepage
path: root/mrbgems
diff options
context:
space:
mode:
authordearblue <[email protected]>2020-11-28 14:44:34 +0900
committerdearblue <[email protected]>2020-11-29 13:48:45 +0900
commitb0cea30f3293d0d4d00fee6f8c7a461e64028890 (patch)
treecde11dde7763c0c4b0dae7a5496165b6854b43cb /mrbgems
parent6d07d9b3d7a64834bda8644ab6c4ed1fabe217a4 (diff)
downloadmruby-b0cea30f3293d0d4d00fee6f8c7a461e64028890.tar.gz
mruby-b0cea30f3293d0d4d00fee6f8c7a461e64028890.zip
Change the catch handler address to 32 bits
Follow commit 7150c6753933f12a2ba63769fb7b3a44cfcddd3d .
Diffstat (limited to 'mrbgems')
-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*