From 215dced2f62112401e9adf343e130e9cc041a65a Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Tue, 15 Jan 2013 22:13:13 +0000 Subject: [PATCH] Fixed a compilation error where NULL was being assigned to a uint. llvm-svn: 172566 --- lldb/examples/darwin/heap_find/heap/heap_find.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/examples/darwin/heap_find/heap/heap_find.cpp b/lldb/examples/darwin/heap_find/heap/heap_find.cpp index 3b2b44cf6948..4c0cca757427 100644 --- a/lldb/examples/darwin/heap_find/heap/heap_find.cpp +++ b/lldb/examples/darwin/heap_find/heap/heap_find.cpp @@ -362,7 +362,7 @@ safe_malloc(size_t n_bytes) { const int k_page_size = getpagesize(); const mach_vm_size_t vm_size = ((n_bytes + k_page_size - 1)/k_page_size) * k_page_size; - vm_address_t address = NULL; + vm_address_t address = 0; kern_return_t kerr = vm_allocate (mach_task_self(), &address, vm_size, true); if (kerr == KERN_SUCCESS) return (void *)address;