string.c: move compilation condition to remove unreachable code.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2022-04-25 10:04:39 +09:00
parent 39c8c051f8
commit f225db4ed6
+2 -1
View File
@@ -2319,8 +2319,9 @@ mrb_str_len_to_integer(mrb_state *mrb, const char *str, size_t len, mrb_int base
}
if (badcheck && trailingbad(str, p, pend)) goto bad;
return mrb_bint_new_str(mrb, p2, (mrb_int)(p3-p2), sign ? base : -base);
#endif
#else
mrb_raisef(mrb, E_RANGE_ERROR, "string (%l) too big for integer", str, pend-str);
#endif
}
n += c;
}