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
1 changed files with 1 additions and 1 deletions

View File

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