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]

[gcjx] Patch: FYI: bug fix in Character unboxing


I'm checking this in on the gcjx branch.

Yesterday's patch for Character unboxing had a small bug, oops.
Caught with Jacks; not sure why I didn't see it yesterday.

Tom

Index: ChangeLog
from  Tom Tromey  <tromey@redhat.com>
	* bytecode/generate.cc (visit_cast): Fixed ordering of emit_cast
	arguments.

Index: bytecode/generate.cc
===================================================================
RCS file: /cvs/gcc/gcc/gcjx/bytecode/Attic/generate.cc,v
retrieving revision 1.1.2.17
diff -u -r1.1.2.17 generate.cc
--- bytecode/generate.cc 11 Jul 2005 16:57:20 -0000 1.1.2.17
+++ bytecode/generate.cc 12 Jul 2005 17:26:35 -0000
@@ -2256,7 +2256,7 @@
 	  handle_invocation (op_invokevirtual, call->get_declaring_class (),
 			     call, args);
 	  if (is_char)
-	    emit_cast (primitive_char_type, dest_type);
+	    emit_cast (dest_type, primitive_char_type);
 	}
       else
 	{


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