Skip to content

Commit 1f5324f

Browse files
committed
Same bug as #144 for .
1 parent 4dfc2ee commit 1f5324f

8 files changed

Lines changed: 9 additions & 8 deletions

File tree

langs/evildoer/io.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ val_t peek_byte(void)
1414
{
1515
char c = getc(in);
1616
ungetc(c, in);
17-
return (c == EOF) ? val_wrap_eof() : val_wrap_int(c);
17+
return (c == EOF) ? val_wrap_eof() : val_wrap_byte(c);
1818

1919
}
2020

langs/extort/io.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ val_t peek_byte(void)
1414
{
1515
char c = getc(in);
1616
ungetc(c, in);
17-
return (c == EOF) ? val_wrap_eof() : val_wrap_int(c);
17+
return (c == EOF) ? val_wrap_eof() : val_wrap_byte(c);
1818

1919
}
2020

langs/fraud/io.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ val_t peek_byte(void)
1414
{
1515
char c = getc(in);
1616
ungetc(c, in);
17-
return (c == EOF) ? val_wrap_eof() : val_wrap_int(c);
17+
return (c == EOF) ? val_wrap_eof() : val_wrap_byte(c);
1818

1919
}
2020

langs/hoax/io.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ val_t peek_byte(void)
1414
{
1515
char c = getc(in);
1616
ungetc(c, in);
17-
return (c == EOF) ? val_wrap_eof() : val_wrap_int(c);
17+
return (c == EOF) ? val_wrap_eof() : val_wrap_byte(c);
1818

1919
}
2020

langs/hustle/io.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ val_t peek_byte(void)
1414
{
1515
char c = getc(in);
1616
ungetc(c, in);
17-
return (c == EOF) ? val_wrap_eof() : val_wrap_int(c);
17+
return (c == EOF) ? val_wrap_eof() : val_wrap_byte(c);
1818

1919
}
2020

langs/iniquity/io.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ val_t peek_byte(void)
1414
{
1515
char c = getc(in);
1616
ungetc(c, in);
17-
return (c == EOF) ? val_wrap_eof() : val_wrap_int(c);
17+
return (c == EOF) ? val_wrap_eof() : val_wrap_byte(c);
1818

1919
}
2020

langs/jig/io.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ val_t peek_byte(void)
1414
{
1515
char c = getc(in);
1616
ungetc(c, in);
17-
return (c == EOF) ? val_wrap_eof() : val_wrap_int(c);
17+
return (c == EOF) ? val_wrap_eof() : val_wrap_byte(c);
1818

1919
}
2020

ziggy/src/test/test-runner.rkt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,8 @@
228228

229229
(check-equal? (run "ab" '(peek-byte)) (cons 97 ""))
230230
(check-equal? (run "ab" '(begin (peek-byte) (read-byte))) (cons 97 ""))
231-
(check-equal? (run "" '(read-byte)) (cons 226 "")))
231+
(check-equal? (run "" '(read-byte)) (cons 226 ""))
232+
(check-equal? (run "" '(peek-byte)) (cons 226 "")))
232233

233234
{:> E1}
234235
(begin ;; Extort

0 commit comments

Comments
 (0)