mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-27 15:41:46 +00:00
Fix 1f9e18b656
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;
|
||||
char *TempPtr = Temp.end();
|
||||
char *TempPtr = Temp.data() + Temp.size();
|
||||
|
||||
while (N) {
|
||||
*--TempPtr = char('0' + N % 10);
|
||||
|
Loading…
Reference in New Issue
Block a user