2004-04-21 Michael Koch <konqueror@gmx.de>

* gnu/java/net/natPlainSocketImplPosix.cc
	(SocketInputStream::read): Make sure returned data is a byte value.

From-SVN: r80959
This commit is contained in:
Michael Koch 2004-04-21 12:48:02 +00:00 committed by Michael Koch
parent af4b94345e
commit 6e90ed190e
2 changed files with 6 additions and 1 deletions

View file

@ -380,7 +380,7 @@ gnu::java::net::PlainSocketImpl$SocketInputStream::read(void)
jbyte data;
if (read_helper (this$0->native_fd, this$0->timeout, &data, 1) == 1)
return data;
return data && 0xFF;
return -1;
}