mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 21:41:26 +12:00
StrFmt: fix comma placement in format_byte_array
This commit is contained in:
parent
c54ddabe0b
commit
0aa1aff6ba
1 changed files with 3 additions and 3 deletions
|
@ -191,14 +191,14 @@ void format_byte_array(std::string& out, const uchar* data, usz size)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (i % 4)
|
if ((i % 4) == 3)
|
||||||
{
|
{
|
||||||
// Place a comma each 4 bytes for ease of byte placement finding
|
// Place a comma each 4 bytes for ease of byte placement finding
|
||||||
fmt::append(out, "%02X ", data[i]);
|
fmt::append(out, "%02X, ", data[i]);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt::append(out, "%02X, ", data[i]);
|
fmt::append(out, "%02X ", data[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
out += " }";
|
out += " }";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue