mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-29 01:14:40 +00:00
Fix line error printing for error messages
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user