changeset 2114:90ade3e5c802

If we're going to print jlong values with INT64_FORMAT, then cast them to int64_t to make sure they're the right type.
author Greg Lewis <glewis@eyesbeyond.com>
date Thu, 27 Jan 2011 22:29:46 -0800
parents 64f1f124ea0a
children bf78122e49b4
files src/share/vm/oops/constantPoolOop.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/oops/constantPoolOop.cpp	Wed Jan 26 19:15:50 2011 -0500
+++ b/src/share/vm/oops/constantPoolOop.cpp	Thu Jan 27 22:29:46 2011 -0800
@@ -1312,7 +1312,7 @@
       }
       case JVM_CONSTANT_Long: {
         u8 val = Bytes::get_Java_u8(bytes);
-        printf("long         "INT64_FORMAT, *(jlong *) &val);
+        printf("long         "INT64_FORMAT, (int64_t) *(jlong *) &val);
         ent_size = 8;
         idx++; // Long takes two cpool slots
         break;