This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch: FYI: bootstrap fix


This patch fixes a build regression introduced yesterday.
I'm checking it in on the trunk.

Folks, please, no lvalue casts.

Tom

Index: ChangeLog
from  Tom Tromey  <tromey@redhat.com>

	* gnu/java/awt/natEmbeddedWindow.cc (setWindowPeer): Removed
	lvalue cast; use correct rvalue cast.

Index: gnu/java/awt/natEmbeddedWindow.cc
===================================================================
RCS file: /cvs/gcc/gcc/libjava/gnu/java/awt/natEmbeddedWindow.cc,v
retrieving revision 1.2
diff -u -r1.2 natEmbeddedWindow.cc
--- gnu/java/awt/natEmbeddedWindow.cc 27 Jul 2003 19:04:42 -0000 1.2
+++ gnu/java/awt/natEmbeddedWindow.cc 4 Sep 2003 16:56:45 -0000
@@ -8,10 +8,11 @@
 
 #include <gnu/java/awt/EmbeddedWindow.h>
 #include <gnu/java/awt/peer/EmbeddedWindowPeer.h>
+#include <java/awt/peer/ComponentPeer.h>
 
 void
 gnu::java::awt::EmbeddedWindow::setWindowPeer (gnu::java::awt::peer::EmbeddedWindowPeer* w)
 {
   if (!peer)
-    (::java::lang::Object*) peer = (::java::lang::Object*) w;
+    peer = reinterpret_cast< ::java::awt::peer::ComponentPeer *> (w);
 }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]