diff options
| -rw-r--r-- | src/codegen.c | 2 | ||||
| -rw-r--r-- | test/init_mrbtest.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/codegen.c b/src/codegen.c index b8909e809..83d0136ef 100644 --- a/src/codegen.c +++ b/src/codegen.c @@ -355,7 +355,7 @@ genop_peep(codegen_scope *s, mrb_code i, int val) static void scope_error(codegen_scope *s) { - exit(1); + exit(EXIT_FAILURE); } static inline void diff --git a/test/init_mrbtest.c b/test/init_mrbtest.c index 5c80c6e91..3b8f9129e 100644 --- a/test/init_mrbtest.c +++ b/test/init_mrbtest.c @@ -18,7 +18,7 @@ mrb_init_mrbtest(mrb_state *mrb) #endif if (mrb->exc) { mrb_p(mrb, mrb_obj_value(mrb->exc)); - exit(0); + exit(EXIT_FAILURE); } } |
