forked from OSchip/llvm-project
Don't assume iterator on std::array<char, ...> are char*, use .data() instead
This commit is contained in:
parent
e7762653d3
commit
065044c443
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue