<rdar://problem/13011717>

Fixed a compilation error where NULL was being assigned to a uint.

llvm-svn: 172566
This commit is contained in:
Greg Clayton 2013-01-15 22:13:13 +00:00
parent e6c9fe035d
commit 215dced2f6
1 changed files with 1 additions and 1 deletions
lldb/examples/darwin/heap_find/heap

View File

@ -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;