From 281f5c63c115e5afc1f9548a3badecddc7ceb855 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 14 Mar 2020 19:08:02 +0100 Subject: 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. --- options/m_option.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'options/m_option.c') diff --git a/options/m_option.c b/options/m_option.c index e0cc804914..ee651f9b7f 100644 --- a/options/m_option.c +++ b/options/m_option.c @@ -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; } -- cgit v1.2.3