Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions libdebug/cpp/source/PS4DBG.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ namespace libdebug
{
CheckConnected();

SendCMDPacket(CMDS::CMD_PROC_WRITE, CMD_PROC_WRITE_PACKET_SIZE, { pid, address, data.size()});
SendCMDPacket(CMDS::CMD_PROC_WRITE, CMD_PROC_WRITE_PACKET_SIZE, { pid, address, (int32_t) data.size()});
CheckStatus();
SendData(data, data.size());
CheckStatus();
Expand Down Expand Up @@ -372,7 +372,7 @@ namespace libdebug
void PS4DBG::LoadElf(int32_t pid, const std::vector<uint8_t> &elf)
{

SendCMDPacket(CMDS::CMD_PROC_ELF, CMD_PROC_ELF_PACKET_SIZE, { pid, elf.size() });
SendCMDPacket(CMDS::CMD_PROC_ELF, CMD_PROC_ELF_PACKET_SIZE, { pid, (int32_t) elf.size() });
SendData(elf, elf.size());
CheckStatus();
}
Expand Down Expand Up @@ -461,7 +461,7 @@ namespace libdebug
{
CheckConnected();

SendCMDPacket(CMDS::CMD_KERN_WRITE, CMD_KERN_WRITE_PACKET_SIZE, { address, data.size() });
SendCMDPacket(CMDS::CMD_KERN_WRITE, CMD_KERN_WRITE_PACKET_SIZE, { address, (int32_t) data.size() });
CheckStatus();
SendData(data, data.size());
CheckStatus();
Expand Down