summaryrefslogtreecommitdiff
path: root/usr.bin/yacc
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2010-11-09 02:51:38 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2010-11-09 02:51:38 +0000
commit6d4a0c96d37560d21d9008530e337d515f9c8992 (patch)
tree3ec555651498fb8444b13b20af8c70d095543dc5 /usr.bin/yacc
parent5e6906ee360821173b480704ea2673d00303c256 (diff)
downloadsrc-test2-6d4a0c96d37560d21d9008530e337d515f9c8992.tar.gz
src-test2-6d4a0c96d37560d21d9008530e337d515f9c8992.zip
Notes
Diffstat (limited to 'usr.bin/yacc')
-rw-r--r--usr.bin/yacc/reader.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/yacc/reader.c b/usr.bin/yacc/reader.c
index 73178741639f..f1ca8aee4359 100644
--- a/usr.bin/yacc/reader.c
+++ b/usr.bin/yacc/reader.c
@@ -719,7 +719,7 @@ get_literal(void)
++cptr;
}
}
- if (n > UCHAR_MAX) illegal_character(c_cptr);
+ if (n > (int)UCHAR_MAX) illegal_character(c_cptr);
c = n;
break;
@@ -735,7 +735,7 @@ get_literal(void)
if (i < 0 || i >= 16) break;
++cptr;
n = (n << 4) + i;
- if (n > UCHAR_MAX) illegal_character(c_cptr);
+ if (n > (int)UCHAR_MAX) illegal_character(c_cptr);
}
c = n;
break;