diff options
Diffstat (limited to 'lua_benchmark/main.c')
-rw-r--r-- | lua_benchmark/main.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lua_benchmark/main.c b/lua_benchmark/main.c index 4f1eb04..ddcf2fe 100644 --- a/lua_benchmark/main.c +++ b/lua_benchmark/main.c @@ -59,10 +59,7 @@ static void init_allocator() { } static int grow_pool() { - if (sbrk(POOL_SIZE) != (void*)((uint8_t*)POOL + POOL_SIZE)) { - printf("sbrk failure!\n"); - return 0; - } + if (sbrk(POOL_SIZE) != (void*)((uint8_t*)POOL + POOL_SIZE)) return 0; POOL_SIZE *= 2; grow_buddy(POOL, POOL_SIZE, &BUDDY); return 1; |