Fix warning on 64-bit machines
authorBrian Gaeke <gaeke@uiuc.edu>
Fri, 16 Jul 2004 21:40:32 +0000 (21:40 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Fri, 16 Jul 2004 21:40:32 +0000 (21:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14902 91177308-0d34-0410-b5e6-96231b3b80d8

runtime/GC/SemiSpace/semispace.c

index a005a48c888013d93574ac06da995066b2264373..df60b623b0db3d50b1f149a43c8f7c8ac30f2818 100644 (file)
@@ -75,7 +75,7 @@ static void* llvm_gc_alloc_slow(unsigned Size) {
 
 
 static void process_pointer(void **Root, void *Meta) {
-  printf("process_root[0x%X] = 0x%X\n", (unsigned) Root, (unsigned) *Root);
+  printf("process_root[0x%p] = 0x%p\n", (void*) Root, (void*) *Root);
 }
 
 void llvm_gc_collect() {