aboutsummaryrefslogtreecommitdiff
path: root/src/array.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/array.cpp')
-rw-r--r--src/array.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/array.cpp b/src/array.cpp
index b9bc8bb0b..a6c9396fb 100644
--- a/src/array.cpp
+++ b/src/array.cpp
@@ -211,7 +211,7 @@ template <typename T>
void array_ordered_remove(Array<T> *array, isize index) {
GB_ASSERT(0 <= index && index < array->count);
- isize bytes = (gb_size_of(T)*n) * (array->count-(index+1));
+ isize bytes = gb_size_of(T) * (array->count-(index+1));
gb_memmove(array->data+index, array->data+index+1, bytes);
array->count -= 1;
}