summaryrefslogtreecommitdiff
path: root/usr.bin/awk/lexyy.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-04-06 06:31:52 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-04-06 06:31:52 +0000
commitd322712308e686f332a449b6a6f9dd2aa56d37d2 (patch)
treed16df39149cc29e812afc44f54ae1bd1ca5cc7ed /usr.bin/awk/lexyy.c
parent683cb73ba1617a5c10df69db92e8a020900327cb (diff)
Use long, not int when casting pointers and storing as integers.
Now compiles on alpha w/o warnings.
Diffstat (limited to 'usr.bin/awk/lexyy.c')
-rw-r--r--usr.bin/awk/lexyy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/awk/lexyy.c b/usr.bin/awk/lexyy.c
index e58761ae0f9..a2e74470d0d 100644
--- a/usr.bin/awk/lexyy.c
+++ b/usr.bin/awk/lexyy.c
@@ -1902,7 +1902,7 @@ yylook(void){
}
# endif
yyr = yyt;
- if ( (int)yyt > (int)yycrank){
+ if ( (long)yyt > (long)yycrank){
yyt = yyr + yych;
if (yyt <= yytop && yyt->verify+yysvec == yystate){
if(yyt->advance+yysvec == YYLERR) /* error transitions */
@@ -1912,7 +1912,7 @@ yylook(void){
}
}
# ifdef YYOPTIM
- else if((int)yyt < (int)yycrank) { /* r < yycrank */
+ else if((long)yyt < (long)yycrank) { /* r < yycrank */
yyt = yyr = yycrank+(yycrank-yyt);
# ifdef LEXDEBUG
if(debug)fprintf(yyout,"compressed state\n");