64-bit fixes to Hoard.

This commit is contained in:
Alex Smith 2012-07-28 13:02:34 +01:00
parent a3210bbc76
commit c3b03e5877
2 changed files with 2 additions and 2 deletions

View File

@ -179,7 +179,7 @@ hoardSbrk(long size)
if (chunk->size > (size_t)size + sizeof(free_chunk)) {
// divide this chunk into smaller bits
uint32 newSize = chunk->size - size;
size_t newSize = chunk->size - size;
free_chunk *next = chunk->next;
chunk = (free_chunk *)((addr_t)chunk + size);

View File

@ -67,7 +67,7 @@ superblock::superblock(int numBlocks, // The number of blocks in the sb.
// and insert the block pointers into the linked list.
for (int i = 0; i < _numBlocks; i++) {
// Make sure the block is on a double-word boundary.
assert(((unsigned int)b & hoardHeap::ALIGNMENT_MASK) == 0);
assert(((unsigned long)b & hoardHeap::ALIGNMENT_MASK) == 0);
new(b) block(this);
assert(b->getSuperblock() == this);
b->setNext(_freeList);