improve const correctness (#325)

This commit is contained in:
Jcw87
2023-04-29 17:32:56 -07:00
committed by GitHub
parent 0c4e853e4b
commit 4a29d25e65
19 changed files with 57 additions and 57 deletions
+2 -2
View File
@@ -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);
}