mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-29 00:32:51 +00:00
Fixed compilation for MEM_USE_POOLS under MSVC (where ++ doesn't work for enums)
This commit is contained in:
parent
a5b0ea97d6
commit
5d153ca1b3
@ -82,7 +82,7 @@ mem_malloc(mem_size_t size)
|
|||||||
memp_t poolnr;
|
memp_t poolnr;
|
||||||
mem_size_t required_size = size + sizeof(struct memp_malloc_helper);
|
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
|
#if MEM_USE_POOLS_TRY_BIGGER_POOL
|
||||||
again:
|
again:
|
||||||
#endif /* MEM_USE_POOLS_TRY_BIGGER_POOL */
|
#endif /* MEM_USE_POOLS_TRY_BIGGER_POOL */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user