Skip to content

Commit

Permalink
Linux: Fixed compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
SourMesen committed Mar 31, 2024
1 parent 2e13925 commit b4369c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Core/GBA/Debugger/GbaDisUtils.cpp
Expand Up @@ -28,7 +28,7 @@ void GbaDisUtils::ThumbDisassemble(DisassemblyInfo& info, string& out, uint32_t
GbaThumbOpCategory category = GbaCpu::GetThumbOpCategory(opCode);

auto writeBranchTarget = [&str, labelManager](uint32_t addr) {
AddressInfo relAddr = { addr, MemoryType::GbaMemory };
AddressInfo relAddr = { (int32_t)addr, MemoryType::GbaMemory };
string label = labelManager ? labelManager->GetLabel(relAddr) : "";
if(label.empty()) {
str.WriteAll('$', HexUtilities::ToHex(addr));
Expand Down Expand Up @@ -406,7 +406,7 @@ void GbaDisUtils::ArmDisassemble(DisassemblyInfo& info, string& out, uint32_t me
GbaArmOpCategory category = GbaCpu::GetArmOpCategory(opCode);

auto writeBranchTarget = [&str, labelManager](uint32_t addr) {
AddressInfo relAddr = { addr, MemoryType::GbaMemory };
AddressInfo relAddr = { (int32_t)addr, MemoryType::GbaMemory };
string label = labelManager ? labelManager->GetLabel(relAddr) : "";
if(label.empty()) {
str.WriteAll('$', HexUtilities::ToHex(addr));
Expand Down

0 comments on commit b4369c9

Please sign in to comment.