aboutsummaryrefslogtreecommitdiff
path: root/src/std/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/std/buffer.c')
-rw-r--r--src/std/buffer.c3
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];
}