mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-08 10:03:06 -04:00
improve const correctness (#325)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user