[Lldb-commits] [lldb] r172566 - /lldb/trunk/examples/darwin/heap_find/heap/heap_find.cpp
Greg Clayton
gclayton at apple.com
Tue Jan 15 14:13:13 PST 2013
Author: gclayton
Date: Tue Jan 15 16:13:13 2013
New Revision: 172566
URL: http://llvm.org/viewvc/llvm-project?rev=172566&view=rev
Log:
<rdar://problem/13011717>
Fixed a compilation error where NULL was being assigned to a uint.
Modified:
lldb/trunk/examples/darwin/heap_find/heap/heap_find.cpp
Modified: lldb/trunk/examples/darwin/heap_find/heap/heap_find.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/examples/darwin/heap_find/heap/heap_find.cpp?rev=172566&r1=172565&r2=172566&view=diff
==============================================================================
--- lldb/trunk/examples/darwin/heap_find/heap/heap_find.cpp (original)
+++ lldb/trunk/examples/darwin/heap_find/heap/heap_find.cpp Tue Jan 15 16:13:13 2013
@@ -362,7 +362,7 @@
{
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;
More information about the lldb-commits
mailing list