src/share/vm/opto/idealGraphPrinter.cpp

Print this page
rev 554 : 6781583: Hotspot build fails on linux 64 bit platform with gcc 4.3.2
Summary: Fixed the wrong cast between types since more restrictions are imposed by gcc 4.3.2
Reviewed-by: jcoomes, acorn, phh, never

@@ -555,11 +555,11 @@
         assert(typeLong->is_con(), "must be constant");
         jlong value = typeLong->get_con();
 
         // max. 2 chars allowed
         if (value >= -9 && value <= 99) {
-          sprintf(buffer, "%d", value);
+          sprintf(buffer, INT64_FORMAT, value);
           print_prop(short_name, buffer);
         } else {
           print_prop(short_name, "L");
         }
       } else if (t->base() == Type::KlassPtr) {