DBG: support 0x prefixed numbers
This commit is contained in:
parent
9f15966307
commit
74d0b92474
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue