aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-08-31 11:07:31 +0100
committergingerBill <bill@gingerbill.org>2022-08-31 11:07:31 +0100
commitca76d5345241cbd2b7522ec40aee1bf29b23f3f4 (patch)
treebaa6ec49c1904838de50c2a2234fff7e34a64e44
parentb0904d659843c6d2cdc5a3ea6de9f84af04f0085 (diff)
Fix more typos
-rw-r--r--core/mem/virtual/growing_arena.odin4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/mem/virtual/growing_arena.odin b/core/mem/virtual/growing_arena.odin
index ee3220cfa..0fb826c07 100644
--- a/core/mem/virtual/growing_arena.odin
+++ b/core/mem/virtual/growing_arena.odin
@@ -14,9 +14,9 @@ Growing_Arena :: struct {
DEFAULT_MINIMUM_BLOCK_SIZE :: 1<<20 // 1 MiB should be enough
growing_arena_init :: proc(arena: ^Growing_Arena, reserved: uint = DEFAULT_MINIMUM_BLOCK_SIZE) -> (err: Allocator_Error) {
- arena.block = memory_block_alloc(0, reserved, {}) or_return
+ arena.curr_block = memory_block_alloc(0, reserved, {}) or_return
arena.total_used = 0
- arena.total_reserved = arena.block.reserved
+ arena.total_reserved = arena.curr_block.reserved
return
}