diff options
| author | mattn <[email protected]> | 2013-04-05 18:04:22 +0900 |
|---|---|---|
| committer | mattn <[email protected]> | 2013-04-05 18:04:22 +0900 |
| commit | 1541a61f5db1ce6e278b5f9c910a595c0c7dbe58 (patch) | |
| tree | ee2b2b698f4efb5235aa95da018f3a276f77978b | |
| parent | 97aee949c5931541b0d89963df6da1bcea4023c3 (diff) | |
| download | mruby-1541a61f5db1ce6e278b5f9c910a595c0c7dbe58.tar.gz mruby-1541a61f5db1ce6e278b5f9c910a595c0c7dbe58.zip | |
Fix exit
| -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); } } |
