comparison src/share/vm/opto/idealGraphPrinter.cpp @ 513:2328d1d3f8cf

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
author xlu
date Wed, 24 Dec 2008 19:13:53 -0800
parents 9ee9cf798b59
children 0fbdb4381b99
comparison
equal deleted inserted replaced
512:db4caa99ef11 513:2328d1d3f8cf
555 assert(typeLong->is_con(), "must be constant"); 555 assert(typeLong->is_con(), "must be constant");
556 jlong value = typeLong->get_con(); 556 jlong value = typeLong->get_con();
557 557
558 // max. 2 chars allowed 558 // max. 2 chars allowed
559 if (value >= -9 && value <= 99) { 559 if (value >= -9 && value <= 99) {
560 sprintf(buffer, "%d", value); 560 sprintf(buffer, INT64_FORMAT, value);
561 print_prop(short_name, buffer); 561 print_prop(short_name, buffer);
562 } else { 562 } else {
563 print_prop(short_name, "L"); 563 print_prop(short_name, "L");
564 } 564 }
565 } else if (t->base() == Type::KlassPtr) { 565 } else if (t->base() == Type::KlassPtr) {