summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rw-r--r--bin/bit.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/bit.y b/bin/bit.y
index 9d977a34..1119bce6 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;