From 8f0b9daaa2299023b4c34aa46cd1f0d83d35ef82 Mon Sep 17 00:00:00 2001 From: Michael Koch Date: Tue, 11 May 2004 19:48:45 +0000 Subject: [PATCH] 2004-05-11 Michael Koch * gnu/java/net/natPlainSocketImplPosix.cc (read): Fixed typo in expression. From-SVN: r81714 --- libjava/ChangeLog | 5 +++++ libjava/gnu/java/net/natPlainSocketImplPosix.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 5b1edccbbe8..72df26c590f 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2004-05-11 Michael Koch + + * gnu/java/net/natPlainSocketImplPosix.cc + (read): Fixed typo in expression. + 2004-05-10 Andreas Tobler * testsuite/lib/libjava.exp (libjava_invoke): Add new argument diff --git a/libjava/gnu/java/net/natPlainSocketImplPosix.cc b/libjava/gnu/java/net/natPlainSocketImplPosix.cc index ee2f39352a5..7fd4fe04d6f 100644 --- a/libjava/gnu/java/net/natPlainSocketImplPosix.cc +++ b/libjava/gnu/java/net/natPlainSocketImplPosix.cc @@ -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 && 0xFF; + return data & 0xFF; return -1; } -- 2.30.2