aboutsummaryrefslogtreecommitdiff
path: root/src/client/mac/handler/protected_memory_allocator.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/mac/handler/protected_memory_allocator.h')
-rw-r--r--src/client/mac/handler/protected_memory_allocator.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/mac/handler/protected_memory_allocator.h b/src/client/mac/handler/protected_memory_allocator.h
index ed4f51d5..7e188db2 100644
--- a/src/client/mac/handler/protected_memory_allocator.h
+++ b/src/client/mac/handler/protected_memory_allocator.h
@@ -53,7 +53,7 @@ class ProtectedMemoryAllocator {
// Fails by returning NULL is no more space is available.
// Please note that the pointers returned from this method should not
// be freed in any way (for example by calling free() on them ).
- char * Allocate(size_t n);
+ char * Allocate(vm_size_t n);
// Returns the base address of the allocation pool.
char * GetBaseAddress() { return (char*)base_address_; }
@@ -78,7 +78,7 @@ class ProtectedMemoryAllocator {
private:
vm_size_t pool_size_;
vm_address_t base_address_;
- int next_alloc_offset_;
+ vm_size_t next_alloc_offset_;
bool valid_;
};