json_never_inline T handle_overflowing_exponent()

in include/spotify/json/codec/number.hpp [254:266]


json_never_inline T handle_overflowing_exponent(
    decode_context &context,
    const bool exp_is_positive,
    const char *int_beg,
    const char *int_end,
    const char *dec_beg,
    const char *dec_end) {
  bool ignore;
  const auto i = decode_integer_range_with_overflow<unsigned, true>(context, int_beg, int_end, 0, ignore);
  const auto d = decode_integer_range_with_overflow<unsigned, true>(context, dec_beg, dec_end, 0, ignore);
  fail_if(context, exp_is_positive && (i || d), "Integer overflow");
  return 0;
}