Skip to content

Commit c30eb11

Browse files
committed
fix: cast malloc correctly
1 parent 68b1f48 commit c30eb11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sys-botbaseplus/source/commands.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ void Commands::poke(u64 offset, u64 size, u8 *val)
172172

173173
void Commands::peek(u64 offset, u64 size)
174174
{
175-
u8 *out = malloc(sizeof(u8) * size);
175+
u8 *out = (u8 *)malloc(sizeof(u8) * size);
176176
attach();
177177
Result rc = svcReadDebugProcessMemory(out, debughandle, offset, size);
178178
if (R_FAILED(rc) && Variables::debugResultCodes)

0 commit comments

Comments
 (0)