Fix bug #31081 (`lookahead-u8' returns an s8.)
authorLudovic Courtès <ludo@gnu.org>
Thu, 23 Sep 2010 20:34:31 +0000 (22:34 +0200)
committerLudovic Courtès <ludo@gnu.org>
Thu, 23 Sep 2010 20:34:31 +0000 (22:34 +0200)
commit3fa882203aefb68c00ebd28ca8b9ed6988e7a1ad
tree3bf1287a7b1e034c569f785f0053b61b952a97e6
parente7bee747712be9ee98f4f739cc1b52df8fd7dcd8
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.
THANKS
libguile/r6rs-ports.c
test-suite/tests/r6rs-ports.test