diff options
author | wm4 <wm4@nowhere> | 2020-03-14 19:08:02 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2020-03-14 19:08:47 +0100 |
commit | 281f5c63c115e5afc1f9548a3badecddc7ceb855 (patch) | |
tree | ced6a0fa993cfba505de5a5e009f594bfe8318c0 | |
parent | 8861bfa9137e9e4d637f0c681db5029bad7d9e74 (diff) | |
download | mpv-281f5c63c115e5afc1f9548a3badecddc7ceb855.tar.bz2 mpv-281f5c63c115e5afc1f9548a3badecddc7ceb855.tar.xz |
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.
-rw-r--r-- | options/m_option.c | 3 |
1 files changed, 0 insertions, 3 deletions
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; } |