From 0293eac84adbc34beb5d8d0bc34360d607aac79f Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 27 Jul 2013 21:31:04 +0200 Subject: m_config: try to print min/max values as integers in --list-options This switched to exponential representation too soon, and large integer values looked bad in the --list-options output. --- core/m_config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/m_config.c b/core/m_config.c index a67ffa6a85..406c363093 100644 --- a/core/m_config.c +++ b/core/m_config.c @@ -665,9 +665,9 @@ void m_config_print_option_list(const struct m_config *config) snprintf(min, sizeof(min), "any"); snprintf(max, sizeof(max), "any"); if (opt->flags & M_OPT_MIN) - snprintf(min, sizeof(min), "%g", opt->min); + snprintf(min, sizeof(min), "%.14g", opt->min); if (opt->flags & M_OPT_MAX) - snprintf(max, sizeof(max), "%g", opt->max); + snprintf(max, sizeof(max), "%.14g", opt->max); mp_msg(MSGT_CFGPARSER, MSGL_INFO, " (%s to %s)", min, max); } char *def = get_option_value_string(defaults, co->name); -- cgit v1.2.3