Fixed compilation for MEM_USE_POOLS under MSVC (where ++ doesn't work for enums)

This commit is contained in:
goldsimon 2010-03-22 08:38:28 +00:00
parent a5b0ea97d6
commit 5d153ca1b3

View File

@ -82,7 +82,7 @@ mem_malloc(mem_size_t size)
memp_t poolnr;
mem_size_t required_size = size + sizeof(struct memp_malloc_helper);
for (poolnr = MEMP_POOL_FIRST; poolnr <= MEMP_POOL_LAST; poolnr++) {
for (poolnr = MEMP_POOL_FIRST; poolnr <= MEMP_POOL_LAST; poolnr = (memp_t)(poolnr + 1)) {
#if MEM_USE_POOLS_TRY_BIGGER_POOL
again:
#endif /* MEM_USE_POOLS_TRY_BIGGER_POOL */