mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
string.c: move compilation condition to remove unreachable code.
This commit is contained in:
+2
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user