summaryrefslogtreecommitdiffstats
path: root/src/kernel/heapmgr.C
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/heapmgr.C')
-rw-r--r--src/kernel/heapmgr.C4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/heapmgr.C b/src/kernel/heapmgr.C
index b6e47140c..cac6999b5 100644
--- a/src/kernel/heapmgr.C
+++ b/src/kernel/heapmgr.C
@@ -22,8 +22,8 @@ void HeapManager::free(void* p)
void* HeapManager::_allocate(size_t n)
{
- int which_bucket = 0;
- while (n > ((1 << (which_bucket + 4)) - 8)) which_bucket++;
+ size_t which_bucket = 0;
+ while (n > (size_t)((1 << (which_bucket + 4)) - 8)) which_bucket++;
chunk_t* chunk = (chunk_t*)NULL;
chunk = pop_bucket(which_bucket);
OpenPOWER on IntegriCloud