Skip to content

Commit

Permalink
fix: mrbgems\mruby-exit\src\mruby-exit.c(10): warning C4244: 'functio…
Browse files Browse the repository at this point in the history
…n': conversion from 'mrb_int' to 'int', possible loss of data
  • Loading branch information
dabroz committed Sep 27, 2017
1 parent f632bad commit 377d6a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mrbgems/mruby-exit/src/mruby-exit.c
Expand Up @@ -7,7 +7,7 @@ f_exit(mrb_state *mrb, mrb_value self)
mrb_int i = EXIT_SUCCESS;

mrb_get_args(mrb, "|i", &i);
exit(i);
exit((int)i);
/* not reached */
return mrb_nil_value();
}
Expand Down

0 comments on commit 377d6a4

Please sign in to comment.