Core: fix up clang formatting

This commit is contained in:
zilmar 2024-10-31 07:01:32 +10:30
parent 905254615d
commit 24d5a6bd65
1 changed files with 6 additions and 6 deletions

View File

@ -823,27 +823,27 @@ asmjit::Error CX86Ops::_log(const char * data, size_t size) noexcept
if (m_NumberSymbols.size() > 0 && Pos != std::string::npos) if (m_NumberSymbols.size() > 0 && Pos != std::string::npos)
{ {
uint32_t Value = 0; 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; Pos += 2;
} }
for (int i = 0; i < 8; i++) for (int i = 0; i < 8; i++)
{ {
char c = AsmjitLog[Pos + i]; char c = AsmjitLog[Pos + i];
if (c >= '0' && c <= '9') if (c >= '0' && c <= '9')
{ {
Value = (Value << 4) | (c - '0'); Value = (Value << 4) | (c - '0');
} }
else if (c >= 'a' && c <= 'f') else if (c >= 'a' && c <= 'f')
{ {
Value = (Value << 4) | (c - 'a' + 10); Value = (Value << 4) | (c - 'a' + 10);
} }
else if (c >= 'A' && c <= 'F') else if (c >= 'A' && c <= 'F')
{ {
Value = (Value << 4) | (c - 'A' + 10); Value = (Value << 4) | (c - 'A' + 10);
} }
else else
{ {
break; break;
} }