diff options
author | Steve Chamberlain <sac@cygnus> | 1992-05-01 20:09:44 +0000 |
---|---|---|
committer | Steve Chamberlain <sac@cygnus> | 1992-05-01 20:09:44 +0000 |
commit | dc4726c23606eee0dddf49dbd6130c5c2ac7d97a (patch) | |
tree | c3f3af3b89a1d333aa5565ae24feb0c25f480030 /ld/ldlex.l | |
parent | 859f11ffd8ff43fd7014b5c04d4a1294e7328066 (diff) | |
download | gdb-dc4726c23606eee0dddf49dbd6130c5c2ac7d97a.zip gdb-dc4726c23606eee0dddf49dbd6130c5c2ac7d97a.tar.gz gdb-dc4726c23606eee0dddf49dbd6130c5c2ac7d97a.tar.bz2 |
lint
Diffstat (limited to 'ld/ldlex.l')
-rw-r--r-- | ld/ldlex.l | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -40,7 +40,7 @@ extern int yyparse(); char *buystring(); -int lineno = 1; +unsigned int lineno = 1; int old; #undef YY_INPUT @@ -168,7 +168,7 @@ WHITE [ \t\n]+ } <MRI,EXPRESSION>"$"([0-9A-Fa-f])+ { - yylval.integer = strtol(yytext+1, 0,16); + yylval.integer = strtoul(yytext+1, 0,16); return INT; } @@ -189,11 +189,11 @@ WHITE [ \t\n]+ default: base = 10; } - yylval.integer = strtol(yytext+1, 0, base); + yylval.integer = strtoul(yytext+1, 0, base); return INT; } <DEFSYMEXP,MRI,BOTH,EXPRESSION>"$"?"0x"?([0-9A-Fa-f])+(M|K|m|k)? { - yylval.integer = strtol(yytext,0,hex_mode); + yylval.integer = strtoul(yytext,0,hex_mode); if (yytext[yyleng-1]=='M' || yytext[yyleng-1] == 'm') { yylval.integer *= 1024*1024; |