numeric.c: add mrb_noreturn qualifier to error functions.

- mrb_int_zerodiv()
- mrb_int_overflow()
This commit is contained in:
Yukihiro "Matz" Matsumoto
2022-07-09 15:12:37 +09:00
parent e1980d7596
commit 7de03cbb68
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -21,13 +21,13 @@
#endif
#endif
void
mrb_noreturn void
mrb_int_overflow(mrb_state *mrb, const char *reason)
{
mrb_raisef(mrb, E_RANGE_ERROR, "integer overflow in %s", reason);
}
void
mrb_noreturn void
mrb_int_zerodiv(mrb_state *mrb)
{
mrb_raise(mrb, E_ZERODIV_ERROR, "divided by 0");