1
0
Fork 0

DBG: support 0x prefixed numbers

This commit is contained in:
Mr. eXoDia 2014-07-06 22:04:16 +02:00
parent 9f15966307
commit 74d0b92474
1 changed files with 3 additions and 1 deletions

View File

@ -1134,7 +1134,9 @@ check whether a string is a valid hex number
static bool ishexnumber(const char* string)
{
int add=0;
if(*string=='x') //hex indicator
if(*string=='0' and string[1]=='x')
add=2;
else if(*string=='x') //hex indicator
add=1;
if(!string[add]) //only an indicator, no number
return false;