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; }