diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-07-22 18:48:30 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-22 18:48:30 +0200 |
commit | e9e41c02d4309cd50b5584a8dfc0d7e01cb27e10 (patch) | |
tree | 365b00dba760153e8d88fa143fb7e15a2a1a6448 /src/std_gc | |
parent | 93db3b8726f6d7574b71926285e86135e822f9d3 (diff) |
Kill child process when parent dies
Diffstat (limited to 'src/std_gc')
-rw-r--r-- | src/std_gc/list.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/std_gc/list.c b/src/std_gc/list.c index 7c56d64..e5272b8 100644 --- a/src/std_gc/list.c +++ b/src/std_gc/list.c @@ -24,7 +24,7 @@ static int tsl_list_ensure_capacity(TslList *self, size_t new_size) { new_capacity = 8; while(new_capacity < new_size) { - new_capacity <<= 1; + new_capacity += (new_capacity >> 1); } new_ptr = GC_REALLOC(self->data, new_capacity); |