harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gshiman...@apache.org
Subject svn commit: r501020 - /harmony/enhanced/drlvm/trunk/vm/vmcore/src/class_support/Class_File_Loader.cpp
Date Mon, 29 Jan 2007 11:56:38 GMT
Author: gshimansky
Date: Mon Jan 29 03:56:35 2007
New Revision: 501020

URL: http://svn.apache.org/viewvc?view=rev&rev=501020
Log:
Applied HARMONY-3071 [drlvm][classloader] Elimination of warning message during compilation

The compilation warning is gone now.


Modified:
    harmony/enhanced/drlvm/trunk/vm/vmcore/src/class_support/Class_File_Loader.cpp

Modified: harmony/enhanced/drlvm/trunk/vm/vmcore/src/class_support/Class_File_Loader.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/vmcore/src/class_support/Class_File_Loader.cpp?view=diff&rev=501020&r1=501019&r2=501020
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/vmcore/src/class_support/Class_File_Loader.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/vmcore/src/class_support/Class_File_Loader.cpp Mon Jan
29 03:56:35 2007
@@ -374,8 +374,7 @@
     ConstantPool& cp = clss->get_constant_pool();
     unsigned cp_size = cp.get_size();
 
-    char ctag = (char)tag;
-    switch(ctag) {
+    switch(tag) {
     case AVT_BOOLEAN:
     case AVT_BYTE:
     case AVT_SHORT:
@@ -394,7 +393,7 @@
             }
             read_len += 2;
 
-            switch (ctag) {
+            switch (tag) {
             case AVT_BOOLEAN:
             case AVT_BYTE:
             case AVT_SHORT:
@@ -508,7 +507,7 @@
 
     default:
         REPORT_FAILED_CLASS_FORMAT(clss,
-            "unrecognized annotation value tag : " << (ctag < 128) ? ctag : (int)ctag);
+            "unrecognized annotation value tag : " << (tag < 128) ? tag : (int)tag);
         return 0;
     }
 



Mime
View raw message