Browse Source

Small bug fix.

Dario Manesku 11 years ago
parent
commit
6360f777ec
1 changed files with 2 additions and 2 deletions
  1. 2 2
      include/bx/commandline.h

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