[vlc-devel] [PATCH] config/help: do not print range info if not explicitly set

Filip Roséen filip at atch.se
Sun Oct 16 15:33:31 CEST 2016


If the range for an integer is set to the maximum (default), there is
no point in explicitly stating this range in the help.

Following the changes in e908026, config/help.c:print_item must also
be updated to reflect the new default-range.

These changes fixes that.
---
 src/config/help.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/config/help.c b/src/config/help.c
index 16afba3..5b31f6b 100644
--- a/src/config/help.c
+++ b/src/config/help.c
@@ -434,7 +434,7 @@ static void print_item(const module_t *m, const module_config_t *item,
                             module_gettext(m, item->list_text[i]));
                 }
             }
-            else if (item->min.i != INT_MIN || item->max.i != INT_MAX)
+            else if (item->min.i != INT64_MIN || item->max.i != INT64_MAX )
             {
                 if (asprintf(&typebuf, "%s [%"PRId64" .. %"PRId64"]",
                              type, item->min.i, item->max.i) >= 0)
-- 
2.10.0



More information about the vlc-devel mailing list