summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-01-29 17:00:50 -0500
committerJune McEnroe <june@causal.agency>2021-01-29 17:00:50 -0500
commit79630cb999d47288d360f99ceb91b5b770b733fb (patch)
treee7d589e2989221e76b1b1ad46fdb547385a755e7
parentMove gpl.c and agpl.c templates out of etc (diff)
downloadsrc-79630cb999d47288d360f99ceb91b5b770b733fb.tar.gz
src-79630cb999d47288d360f99ceb91b5b770b733fb.zip
Use int when checking for EOF
Diffstat (limited to '')
-rw-r--r--bin/bit.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/bit.y b/bin/bit.y
index ec3892fd..ab310492 100644
--- a/bin/bit.y
+++ b/bin/bit.y
@@ -88,7 +88,7 @@ expr:
 
 static int lexInt(uint64_t base) {
 	yylval = 0;
-	for (char ch; EOF != (ch = getchar());) {
+	for (int ch; EOF != (ch = getchar());) {
 		uint64_t digit = base;
 		if (ch == '_') {
 			continue;
@@ -108,7 +108,7 @@ static int lexInt(uint64_t base) {
 }
 
 static int yylex(void) {
-	char ch;
+	int ch;
 	while (isblank(ch = getchar()));
 	if (ch == '\'') {
 		yylval = 0;