mirror of https://github.com/mpv-player/mpv
m_option: remove debug code
Forgot to remove this. Here you see my confusion and realization how casting INT64_MAX to double becomes INT64_MAX+1 (due to mantissa precision and rounding), so some things seemed not to make sense at first.
This commit is contained in:
parent
8861bfa913
commit
281f5c63c1
|
@ -536,9 +536,6 @@ static int parse_byte_size(struct mp_log *log, const m_option_t *opt,
|
|||
if (tmp_int > max) {
|
||||
mp_err(log, "The %.*s option must be <= %"PRId64": %.*s\n",
|
||||
BSTR_P(name), max, BSTR_P(param));
|
||||
double x = INT64_MAX;
|
||||
printf("max: %ld, %f %f %ld %ld %d %d\n", max, x, opt->max, (int64_t)opt->max, (int64_t)x, x > INT64_MAX, x == INT64_MAX);
|
||||
abort();
|
||||
return M_OPT_OUT_OF_RANGE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue