mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Fix array_ordered_remove typo
This commit is contained in:
+1
-1
@@ -211,7 +211,7 @@ template <typename T>
|
|||||||
void array_ordered_remove(Array<T> *array, isize index) {
|
void array_ordered_remove(Array<T> *array, isize index) {
|
||||||
GB_ASSERT(0 <= index && index < array->count);
|
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);
|
gb_memmove(array->data+index, array->data+index+1, bytes);
|
||||||
array->count -= 1;
|
array->count -= 1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user