summaryrefslogtreecommitdiff
path: root/BlocksRuntime
diff options
context:
space:
mode:
authorEdward O'Callaghan <eocallaghan@auroraux.org>2009-09-23 03:47:24 +0000
committerEdward O'Callaghan <eocallaghan@auroraux.org>2009-09-23 03:47:24 +0000
commit26e507aa23c3c07a205510063c48c60dbfbc999d (patch)
tree85aefcd32f6f8c119cee5e4b8315f658b6650f87 /BlocksRuntime
parent962a63123c07b5fed500390eb83f2f3aa8e5f8cb (diff)
downloadcompiler-rt-26e507aa23c3c07a205510063c48c60dbfbc999d.tar.gz
compiler-rt-26e507aa23c3c07a205510063c48c60dbfbc999d.tar.bz2
compiler-rt-26e507aa23c3c07a205510063c48c60dbfbc999d.tar.xz
Fix compile time warning: format '%#lx' expects type 'long unsigned int', but argument 3 has type 'unsigned int'
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@82605 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'BlocksRuntime')
-rw-r--r--BlocksRuntime/runtime.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/BlocksRuntime/runtime.c b/BlocksRuntime/runtime.c
index c3e1f58f..33c5b080 100644
--- a/BlocksRuntime/runtime.c
+++ b/BlocksRuntime/runtime.c
@@ -669,7 +669,7 @@ const char *_Block_dump(const void *block) {
cp += sprintf(cp, " HASCTOR");
}
cp += sprintf(cp, "\nrefcount: %u\n", closure->flags & BLOCK_REFCOUNT_MASK);
- cp += sprintf(cp, "invoke: %#lx\n", (uintptr_t)closure->invoke);
+ cp += sprintf(cp, "invoke: %#x\n", (uintptr_t)closure->invoke);
{
struct Block_descriptor *dp = closure->descriptor;
cp += sprintf(cp, "descriptor: %p\n", (void *)dp);
@@ -677,8 +677,8 @@ const char *_Block_dump(const void *block) {
cp += sprintf(cp, "descriptor->size: %lu\n", dp->size);
if (closure->flags & BLOCK_HAS_COPY_DISPOSE) {
- cp += sprintf(cp, "descriptor->copy helper: %#lx\n", (uintptr_t)dp->copy);
- cp += sprintf(cp, "descriptor->dispose helper: %#lx\n", (uintptr_t)dp->dispose);
+ cp += sprintf(cp, "descriptor->copy helper: %#x\n", (uintptr_t)dp->copy);
+ cp += sprintf(cp, "descriptor->dispose helper: %#x\n", (uintptr_t)dp->dispose);
}
}
return buffer;
@@ -693,8 +693,8 @@ const char *_Block_byref_dump(struct Block_byref *src) {
cp += sprintf(cp, " flags: 0x%x\n", src->flags);
cp += sprintf(cp, " size: %d\n", src->size);
if (src->flags & BLOCK_HAS_COPY_DISPOSE) {
- cp += sprintf(cp, " copy helper: %#lx\n", (uintptr_t)src->byref_keep);
- cp += sprintf(cp, " dispose helper: %#lx\n", (uintptr_t)src->byref_destroy);
+ cp += sprintf(cp, " copy helper: %#x\n", (uintptr_t)src->byref_keep);
+ cp += sprintf(cp, " dispose helper: %#x\n", (uintptr_t)src->byref_destroy);
}
return buffer;
}