summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2023-02-07 19:30:55 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2023-02-07 19:30:55 -0400
commita1340d27fd35d3c863ec5fc807fd9179767559d2 (patch)
tree09115e66837e8274d985d3eb55783cb358a28b02 /src
parent4dffe16fddf03381386699f32d3851e8c8dab7d4 (diff)
THeap: Make `next_u8` const
Diffstat (limited to 'src')
-rw-r--r--src/pso/THeap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pso/THeap.cpp b/src/pso/THeap.cpp
index f724e31..e7ebdfa 100644
--- a/src/pso/THeap.cpp
+++ b/src/pso/THeap.cpp
@@ -73,7 +73,7 @@ void *THeap::heap_alloc(size_t size) {
if (aligned_size == node->remaining_size) {
prev_node->next = node->next;
} else {
- u8 *next_u8 = (u8 *)&node->next;
+ const u8 *next_u8 = (u8 *)&node->next;
tmp = (heap_node *)&next_u8[aligned_size];
tmp->next = node->next;