diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-04-05 08:37:04 -0700 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-04-05 08:37:04 -0700 |
| commit | a20384ce746e362c94818c5fd85b99aeb83b859f (patch) | |
| tree | ceb4d8beb66b8858338a551423eb266d32246598 | |
| parent | 93819c0186266224a4292bed123823f571b3df37 (diff) | |
| parent | 1541a61f5db1ce6e278b5f9c910a595c0c7dbe58 (diff) | |
| download | mruby-a20384ce746e362c94818c5fd85b99aeb83b859f.tar.gz mruby-a20384ce746e362c94818c5fd85b99aeb83b859f.zip | |
Merge pull request #1141 from mattn/fix_exit
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); } } |
