fix addr parameters

This commit is contained in:
krakjoe 2014-04-13 08:06:21 +01:00
parent a2d7e336e6
commit 2fde2ada50
2 changed files with 4 additions and 4 deletions

View File

@ -92,7 +92,7 @@ INPUT [^\n]+
}
{ADDR} {
phpdbg_init_param(yylval, ADDR_PARAM);
yylval->addr = strtoul(yytext, NULL, 10);
yylval->addr = strtoul(yytext, 0, 16);
return T_ADDR;
}
{OPCODE} {

View File

@ -943,7 +943,7 @@ YY_RULE_SETUP
#line 93 "sapi/phpdbg/dev/phpdbg_lexer.l"
{
phpdbg_init_param(yylval, ADDR_PARAM);
yylval->addr = strtoul(yytext, NULL, 10);
yylval->addr = strtoul(yytext, 0, 16);
return T_ADDR;
}
YY_BREAK