comparison src/share/vm/classfile/javaClasses.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 d95b224e9f17
children c81d2ef51ca3
comparison
equal deleted inserted replaced
512:db4caa99ef11 513:2328d1d3f8cf
864 // Neither soucename and linenumber 864 // Neither soucename and linenumber
865 sprintf(buf + (int)strlen(buf), "(Unknown Source)"); 865 sprintf(buf + (int)strlen(buf), "(Unknown Source)");
866 } 866 }
867 nmethod* nm = method->code(); 867 nmethod* nm = method->code();
868 if (WizardMode && nm != NULL) { 868 if (WizardMode && nm != NULL) {
869 sprintf(buf + (int)strlen(buf), "(nmethod %#x)", nm); 869 sprintf(buf + (int)strlen(buf), "(nmethod " PTR_FORMAT ")", (intptr_t)nm);
870 } 870 }
871 } 871 }
872 872
873 return buf; 873 return buf;
874 } 874 }