Fix printing of ByteArrays
Cast byte* to void* before printing so that it's not interpreted as a null-terminated string. Change-Id: I32b5a51913c3382b43d7b231d6b8fd4c17e32bb6 Reviewed-on: https://chromium-review.googlesource.com/c/1275352 Reviewed-by: Jakob Gruber <jgruber@chromium.org> Commit-Queue: Dan Elphick <delphick@chromium.org> Cr-Commit-Position: refs/heads/master@{#56553}
This commit is contained in:
parent
54855b67d4
commit
96195fc76e
@ -420,7 +420,8 @@ void HeapObject::HeapObjectPrint(std::ostream& os) { // NOLINT
|
||||
}
|
||||
|
||||
void ByteArray::ByteArrayPrint(std::ostream& os) { // NOLINT
|
||||
os << "byte array, data starts at " << GetDataStartAddress();
|
||||
os << "byte array, data starts at "
|
||||
<< static_cast<void*>(GetDataStartAddress());
|
||||
}
|
||||
|
||||
void BytecodeArray::BytecodeArrayPrint(std::ostream& os) { // NOLINT
|
||||
|
Loading…
Reference in New Issue
Block a user