libroot_debug: Fix build of guarded_heap after atomic changes.

This commit is contained in:
Michael Lotz 2015-04-04 11:00:40 +02:00
parent 2c9e11ba38
commit 37acb83e4c

View File

@ -252,7 +252,7 @@ guarded_heap_free_page(guarded_heap_area& area, size_t pageIndex,
static void
guarded_heap_pages_allocated(guarded_heap& heap, size_t pagesAllocated)
{
atomic_add((vint32*)&heap.used_pages, pagesAllocated);
atomic_add((int32*)&heap.used_pages, pagesAllocated);
}
@ -529,7 +529,7 @@ guarded_heap_area_free(guarded_heap_area& area, void* address)
if (area.heap->reuse_memory) {
area.used_pages -= pagesFreed;
atomic_add((vint32*)&area.heap->used_pages, -pagesFreed);
atomic_add((int32*)&area.heap->used_pages, -pagesFreed);
}
return true;