changeset 2057:162af9c88f31

Fix signedness of T_BYTE and T_CHAR results
author Gary Benson <gbenson@redhat.com>
date Thu, 13 May 2010 15:53:35 +0100
parents 0e8791bf2170
children 38c9e6307044
files ChangeLog ports/hotspot/src/share/vm/shark/sharkNativeWrapper.cpp
diffstat 2 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Fri Jul 16 15:19:55 2010 -0400
+++ b/ChangeLog	Thu May 13 15:53:35 2010 +0100
@@ -1,3 +1,10 @@
+2010-07-19  Gary Benson  <gbenson@redhat.com>
+
+	PR icedtea/483
+	* ports/hotspot/src/share/vm/shark/sharkNativeWrapper.cpp
+	(SharkNativeWrapper::initialize): Fix signedness of T_BYTE
+	and T_CHAR results.
+
 2010-07-16  Deepak Bhole <dbhole@redhat.com>
 
 	* patches/icedtea-policy-evaluation.patch: New patch. Fixes policy
--- a/ports/hotspot/src/share/vm/shark/sharkNativeWrapper.cpp	Fri Jul 16 15:19:55 2010 -0400
+++ b/ports/hotspot/src/share/vm/shark/sharkNativeWrapper.cpp	Thu May 13 15:53:35 2010 +0100
@@ -327,11 +327,11 @@
       needs_cast = true;
       break;
 
-    case T_BYTE:
+    case T_CHAR:
       needs_cast = true;
       break;
 
-    case T_CHAR:
+    case T_BYTE:
     case T_SHORT:
       needs_cast = true;
       is_signed = true;