Skip to content

Commit

Permalink
StdHexAdapt: Fix decompiling not always writing two characters
Browse files Browse the repository at this point in the history
  • Loading branch information
Fulgen301 committed Dec 8, 2024
1 parent fc5eff5 commit ff584f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/StdAdaptors.h
Original file line number Diff line number Diff line change
Expand Up @@ -1036,7 +1036,7 @@ class StdHexAdapt
uint8_t *pByte = reinterpret_cast<uint8_t *>(pData) + i;
if (!fCompiler)
{
*std::to_chars(szData, szData + 2, *pByte, 16).ptr = '\0';
FormatWithNull(szData, "{:02x}", *pByte);
}
pComp->String(szData, 2, StdCompiler::RCT_Idtf);
if (fCompiler)
Expand Down

0 comments on commit ff584f7

Please sign in to comment.