Signed-off-by: Felipe Contreras <felipe.contre...@gmail.com>
---
 config.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/config.c b/config.c
index e1d66a1..7a44414 100644
--- a/config.c
+++ b/config.c
@@ -610,7 +610,7 @@ static int git_config_maybe_bool_text(const char *name, 
const char *value)
 int git_config_maybe_bool(const char *name, const char *value)
 {
        int v = git_config_maybe_bool_text(name, value);
-       if (0 <= v)
+       if (v >= 0)
                return v;
        if (git_parse_int(value, &v))
                return !!v;
@@ -620,7 +620,7 @@ int git_config_maybe_bool(const char *name, const char 
*value)
 int git_config_bool_or_int(const char *name, const char *value, int *is_bool)
 {
        int v = git_config_maybe_bool_text(name, value);
-       if (0 <= v) {
+       if (v >= 0) {
                *is_bool = 1;
                return v;
        }
-- 
1.8.5.1+fc1.2.gebd1fb1

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to