diff --git a/src/StdAdaptors.h b/src/StdAdaptors.h index 94689970..b5446571 100644 --- a/src/StdAdaptors.h +++ b/src/StdAdaptors.h @@ -1036,7 +1036,7 @@ class StdHexAdapt uint8_t *pByte = reinterpret_cast(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)