Skip to content

Commit ff76c84

Browse files
committed
Fix type inconsistency w/r/t fake_heap_end
1 parent 4765db8 commit ff76c84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libctru/source/ndsp/ndsp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -500,8 +500,8 @@ static bool ndspFindAndLoadComponent(void)
500500
rsrc = envGetHandle("hb:ndsp");
501501
if (rsrc) do
502502
{
503-
extern u32 fake_heap_end;
504-
u32 mapAddr = (fake_heap_end+0xFFF) &~ 0xFFF;
503+
extern char* fake_heap_end;
504+
u32 mapAddr = ((u32)fake_heap_end+0xFFF) &~ 0xFFF;
505505
rc = svcMapMemoryBlock(rsrc, mapAddr, MEMPERM_READWRITE, MEMPERM_READWRITE);
506506
if (R_FAILED(rc)) break;
507507

0 commit comments

Comments
 (0)