mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-24 22:00:18 +00:00
Allow esil to use negative numbers as arguments
This commit is contained in:
parent
bcf7d46e36
commit
ad602ebccc
@ -181,7 +181,9 @@ R_API int r_anal_esil_get_parm_type (RAnalEsil *esil, const char *str) {
|
||||
}
|
||||
if (!strncmp (str, "0x", 2))
|
||||
return R_ANAL_ESIL_PARM_NUM;
|
||||
for (i = 0; i < len; i++)
|
||||
if (!((str[0] >= '0' && str[0] <= '9')||str[0]=='-'))
|
||||
goto not_a_number;
|
||||
for (i = 1; i < len; i++)
|
||||
if (!(str[i] >= '0' && str[i] <= '9'))
|
||||
goto not_a_number;
|
||||
return R_ANAL_ESIL_PARM_NUM;
|
||||
|
Loading…
Reference in New Issue
Block a user