This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: fixing typo in expression
- From: Michael Koch <konqueror at gmx dot de>
- To: java-patches at gcc dot gnu dot org
- Date: Tue, 11 May 2004 21:48:06 +0200
- Subject: Patch: fixing typo in expression
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi list,
I just commited a typo in gnu.java.net.PlainSocketImpl.read() which
prevented socket input streams from reading any useful data when
using this method. It seems nearly nothing uses it ...
Michael
2004-05-11 Michael Koch <konqueror@gmx.de>
* gnu/java/net/natPlainSocketImplPosix.cc
(read): Fixed typo in expression.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFAoS33WSOgCCdjSDsRAqmKAJ9tnmi178CFH2M8EXhj99TlQFLqKACgna8V
/T8wHsX5EoBeP/iL1thgkB0=
=uvNX
-----END PGP SIGNATURE-----
Index: gnu/java/net/natPlainSocketImplPosix.cc
===================================================================
RCS file: /cvs/gcc/gcc/libjava/gnu/java/net/natPlainSocketImplPosix.cc,v
retrieving revision 1.8
diff -u -b -B -r1.8 natPlainSocketImplPosix.cc
--- gnu/java/net/natPlainSocketImplPosix.cc 21 Apr 2004 12:48:02 -0000 1.8
+++ gnu/java/net/natPlainSocketImplPosix.cc 11 May 2004 19:40:42 -0000
@@ -380,7 +380,7 @@
jbyte data;
if (read_helper (this$0->native_fd, this$0->timeout, &data, 1) == 1)
- return data && 0xFF;
+ return data & 0xFF;
return -1;
}