Fix line error printing for error messages

This commit is contained in:
gingerBill committed 2023-06-19 22:12:47 +01:00
1 parent 427f212170
commit 6568625dea
7 files changed
+770 -88

No files matched your search

+3 -1
View File
@@ -80,7 +80,9 @@ gb_internal Slice<T> slice_make(gbAllocator const &allocator, isize count) {
GB_ASSERT(count >= 0);
Slice<T> s = {};
s.data = gb_alloc_array(allocator, T, count);
GB_ASSERT(s.data != nullptr);
if (count > 0) {
GB_ASSERT(s.data != nullptr);
}
s.count = count;
return s;
}