Fix rallocm() test to support >4KiB pages.

This commit is contained in:
Jason Evans
2011-11-05 21:06:55 -07:00
parent 8e6f8b490d
commit 30fbef8aea
2 changed files with 15 additions and 5 deletions

View File

@@ -689,7 +689,7 @@ malloc_init_hard(void)
result = sysconf(_SC_PAGESIZE);
assert(result != -1);
pagesize = (unsigned)result;
pagesize = (size_t)result;
/*
* We assume that pagesize is a power of 2 when calculating