summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;