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

View File

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