diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-01-21 01:01:32 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-01-21 01:01:32 +0100 |
commit | a79a3ec573955d073c872cbe112b60d017152a37 (patch) | |
tree | 19caf9a5590d5870225eea0b7cda4bd6da7f7354 /src/std/buffer.c | |
parent | 108018e3e7326dabbbef568ab08bc5cebf5d427b (diff) |
Fix hash map issues
Diffstat (limited to 'src/std/buffer.c')
-rw-r--r-- | src/std/buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/std/buffer.c b/src/std/buffer.c index 42b1a0f..e311c8f 100644 --- a/src/std/buffer.c +++ b/src/std/buffer.c @@ -21,7 +21,7 @@ static int tsl_buffer_ensure_capacity(TslBuffer *self, size_t new_size) { if(self->capacity != 0) { size_t new_capacity = self->capacity; while(new_capacity < new_size) { - new_capacity *= 2; + new_capacity <<= 1; } new_size = new_capacity; } |