mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
fix: mrbgems\mruby-exit\src\mruby-exit.c(10): warning C4244: 'function': conversion from 'mrb_int' to 'int', possible loss of data
This commit is contained in:
committed by
Tomasz Dabrowski
parent
f632baddb1
commit
377d6a47ac
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user