Skip to content

Commit

Permalink
Fixed zone expansion algorithm.
Browse files Browse the repository at this point in the history
  • Loading branch information
redboltz committed Feb 16, 2016
1 parent 0e7345c commit f88e621
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zone.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ void* msgpack_zone_malloc_expand(msgpack_zone* zone, size_t size)
while(sz < size) {
size_t tmp_sz = sz * 2;
if (tmp_sz <= sz) {
tmp_sz = size;
sz = size;
break;
}
sz = tmp_sz;
Expand Down

0 comments on commit f88e621

Please sign in to comment.