summaryrefslogtreecommitdiff
path: root/src/m_Do/m_Do_machine.cpp
diff options
context:
space:
mode:
authorJcw87 <Jcw87@users.noreply.github.com>2023-04-29 17:32:56 -0700
committerGitHub <noreply@github.com>2023-04-29 17:32:56 -0700
commit4a29d25e65b1e03f1b776375dc75d44e3ec478da (patch)
tree34435ecd6f03843e2c05c2e8f2d3adcee7a291a5 /src/m_Do/m_Do_machine.cpp
parent0c4e853e4bc94bfe736c5575075334cc6e3d6397 (diff)
improve const correctness (#325)
Diffstat (limited to 'src/m_Do/m_Do_machine.cpp')
-rw-r--r--src/m_Do/m_Do_machine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/m_Do/m_Do_machine.cpp b/src/m_Do/m_Do_machine.cpp
index aea467d0dc..97e2c19dfe 100644
--- a/src/m_Do/m_Do_machine.cpp
+++ b/src/m_Do/m_Do_machine.cpp
@@ -148,7 +148,7 @@ static u32 heapErrors;
/* 8000B1EC-8000B3EC 005B2C 0200+00 2/2 0/0 0/0 .text myGetHeapTypeByString__FP7JKRHeap
*/
-static char* myGetHeapTypeByString(JKRHeap* p_heap) {
+static const char* myGetHeapTypeByString(JKRHeap* p_heap) {
static char tmpString[5];
if (p_heap == JKRHeap::getSystemHeap()) {
@@ -254,7 +254,7 @@ static void myMemoryErrorRoutine(void* p_heap, u32 size, int alignment) {
/* 8000B5C8-8000B668 005F08 00A0+00 1/1 0/0 0/0 .text myHeapCheckRecursive__FP7JKRHeap */
void myHeapCheckRecursive(JKRHeap* p_heap) {
if (!p_heap->check()) {
- char* type = myGetHeapTypeByString(p_heap);
+ const char* type = myGetHeapTypeByString(p_heap);
OSReport_Error("error in %08x(%s)\n", p_heap, type);
}