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 67e87166c..7e185e872 100644
--- a/src/array.cpp
+++ b/src/array.cpp
@@ -148,7 +148,7 @@ void array_init_count(Array<T> *array, gbAllocator a, isize count) {
template <typename T>
Array<T> array_make(T *data, isize count, isize capacity) {
- Array<T> a = {};
+ Array<T> a = {0};
a.data = data;
a.count = count;
a.capacity = capacity;