Don't assume iterator on std::array<char, ...> are char*, use .data() instead
This commit is contained in:
serge-sans-paille 2022-01-21 11:56:32 +01:00
parent e7762653d3
commit 065044c443

View File

@ -50,7 +50,7 @@ class OutputBuffer {
}
std::array<char, 21> Temp;
char *TempPtr = Temp.end();
char *TempPtr = Temp.data() + Temp.size();
while (N) {
*--TempPtr = char('0' + N % 10);