From 6360f777ecdf54f94e73e9e6845764ce2fae2108 Mon Sep 17 00:00:00 2001 From: Dario Manesku Date: Sun, 11 May 2014 18:05:28 +0100 Subject: [PATCH] Small bug fix. --- include/bx/commandline.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/bx/commandline.h b/include/bx/commandline.h index e184806..8385de7 100644 --- a/include/bx/commandline.h +++ b/include/bx/commandline.h @@ -117,11 +117,11 @@ namespace bx const char* arg = findOption(_short, _long, 1); if (NULL != arg) { - if ('0' == *arg || stricmp(arg, "false") ) + if ('0' == *arg || (0 == stricmp(arg, "false") ) ) { _value = false; } - else if ('0' != *arg || stricmp(arg, "true") ) + else if ('0' != *arg || (0 == stricmp(arg, "true") ) ) { _value = true; }