Fix bug #31081 (`lookahead-u8' returns an s8.)

Reported by Göran Weinholt <goran@weinholt.se>.

* libguile/r6rs-ports.c (scm_lookahead_u8): Return an unsigned byte.

* test-suite/tests/r6rs-ports.test ("7.2.8 Binary Input")["lookahead-u8:
  result is unsigned"]: New test.
This commit is contained in:
Ludovic Courtès 2010-09-23 22:34:31 +02:00
commit 3fa882203a
3 changed files with 8 additions and 2 deletions

1
THANKS
View file

@ -130,6 +130,7 @@ For fixes or providing information which led to a fix:
Michael Tuexen
Thomas Wawrzinek
Mark H. Weaver
Göran Weinholt
Jon Wilson
Andy Wingo
Keith Wright