aboutsummaryrefslogtreecommitdiff
path: root/src/common.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-01-15 15:46:15 +0000
committergingerBill <bill@gingerbill.org>2021-01-15 15:46:15 +0000
commite884f8c165fac7df366a95e5b8f565a375199233 (patch)
tree2106210b28a1a2e0c242ecfc0a57cc4161c7be4e /src/common.cpp
parent3bcccf88d578360bcc97e5903b316b2cfac39b03 (diff)
Fix typo
Diffstat (limited to 'src/common.cpp')
-rw-r--r--src/common.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common.cpp b/src/common.cpp
index 0147f27d5..c751d4597 100644
--- a/src/common.cpp
+++ b/src/common.cpp
@@ -523,6 +523,7 @@ gb_global Temp_Allocator temporary_allocator_data = {};
void temp_allocator_init(Temp_Allocator *s, isize size) {
s->backup_allocator = heap_allocator();
s->data = cast(u8 *)gb_alloc_align(s->backup_allocator, size, 16);
+ s->len = size;
s->curr_offset = 0;
s->leaked_allocations.allocator = s->backup_allocator;
}