Disable binary detection when defaultrad is 16

This commit is contained in:
Kingcom
2013-07-01 10:00:45 +02:00
parent 033a3437fb
commit 42877f5a1f
+1 -1
View File
@@ -77,7 +77,7 @@ bool parseNumber(char* str, int defaultrad, int len, uint32& result)
} else {
if (!(str[0] >= '0' && str[0] <= '9')) return false;
if (tolower(str[len-1]) == 'b')
if (tolower(str[len-1]) == 'b' && defaultrad != 16)
{
r = 2;
len--;