diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-07-25 22:12:24 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-25 22:12:24 +0200 |
commit | 1dfbe97b0a639c91d7727acc443ee2a9c2057920 (patch) | |
tree | bf322304531cf56f919c79471b04cdcca0b4e04f /src/std/buffer.c | |
parent | 53d74e58f46ec54b8d9b147876275532d02d97ed (diff) |
Fix thread pool task count not increasing, incorrect ParserFileScopeReference
Diffstat (limited to 'src/std/buffer.c')
-rw-r--r-- | src/std/buffer.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/std/buffer.c b/src/std/buffer.c index 4ec9c29..fbfb9da 100644 --- a/src/std/buffer.c +++ b/src/std/buffer.c @@ -70,8 +70,7 @@ int buffer_expand(Buffer *self, usize size) { } void* buffer_get(Buffer *self, usize index, usize type_size) { - usize real_index; - real_index = index * type_size; + usize real_index = index * type_size; assert(real_index < self->size); return &self->data[real_index]; } |