Compile as C! Whoop!

This commit is contained in:
Ginger Bill
2016-11-23 12:25:37 +00:00
parent ef8563a818
commit a77c6b3e55
19 changed files with 231 additions and 222 deletions

View File

@@ -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;