This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[gcjx] Patch: FYI: bug fix in Character unboxing
- From: Tom Tromey <tromey at redhat dot com>
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: 12 Jul 2005 11:26:22 -0600
- Subject: [gcjx] Patch: FYI: bug fix in Character unboxing
- Reply-to: tromey at redhat dot com
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
{