aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlex.l
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1992-05-01 20:09:44 +0000
committerSteve Chamberlain <sac@cygnus>1992-05-01 20:09:44 +0000
commitdc4726c23606eee0dddf49dbd6130c5c2ac7d97a (patch)
treec3f3af3b89a1d333aa5565ae24feb0c25f480030 /ld/ldlex.l
parent859f11ffd8ff43fd7014b5c04d4a1294e7328066 (diff)
downloadgdb-dc4726c23606eee0dddf49dbd6130c5c2ac7d97a.zip
gdb-dc4726c23606eee0dddf49dbd6130c5c2ac7d97a.tar.gz
gdb-dc4726c23606eee0dddf49dbd6130c5c2ac7d97a.tar.bz2
lint
Diffstat (limited to 'ld/ldlex.l')
-rw-r--r--ld/ldlex.l8
1 files changed, 4 insertions, 4 deletions
diff --git a/ld/ldlex.l b/ld/ldlex.l
index d2f4db3..31b85a2 100644
--- a/ld/ldlex.l
+++ b/ld/ldlex.l
@@ -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;