diff --git a/Source/Project64-core/N64System/Recompiler/x86/x86ops.cpp b/Source/Project64-core/N64System/Recompiler/x86/x86ops.cpp index 38422c6da..96c31cc7a 100644 --- a/Source/Project64-core/N64System/Recompiler/x86/x86ops.cpp +++ b/Source/Project64-core/N64System/Recompiler/x86/x86ops.cpp @@ -823,27 +823,27 @@ asmjit::Error CX86Ops::_log(const char * data, size_t size) noexcept if (m_NumberSymbols.size() > 0 && Pos != std::string::npos) { uint32_t Value = 0; - if (AsmjitLog[Pos] == '0' && (AsmjitLog[Pos+1] == 'x' || AsmjitLog[Pos+1] == 'X')) + if (AsmjitLog[Pos] == '0' && (AsmjitLog[Pos + 1] == 'x' || AsmjitLog[Pos + 1] == 'X')) { Pos += 2; } - for (int i = 0; i < 8; i++) + for (int i = 0; i < 8; i++) { char c = AsmjitLog[Pos + i]; - if (c >= '0' && c <= '9') + if (c >= '0' && c <= '9') { Value = (Value << 4) | (c - '0'); } - else if (c >= 'a' && c <= 'f') + else if (c >= 'a' && c <= 'f') { Value = (Value << 4) | (c - 'a' + 10); } - else if (c >= 'A' && c <= 'F') + else if (c >= 'A' && c <= 'F') { Value = (Value << 4) | (c - 'A' + 10); } - else + else { break; }