diff options
| author | Ginger Bill <bill@gingerbill.org> | 2016-11-23 12:25:37 +0000 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2016-11-23 12:25:37 +0000 |
| commit | a77c6b3e55c5857c9c0ba36baae2dbdcd7564cd4 (patch) | |
| tree | b53241533f12e6f9075026a77860a9cc1dd5baa0 /src/array.cpp | |
| parent | ef8563a818812493c33e34a259189757d0e7612b (diff) | |
Compile as C! Whoop!
Diffstat (limited to 'src/array.cpp')
| -rw-r--r-- | src/array.cpp | 2 |
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; |