Commit 96195fc7 authored by Dan Elphick's avatar Dan Elphick Committed by Commit Bot

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/1275352Reviewed-by: 's avatarJakob Gruber <jgruber@chromium.org>
Commit-Queue: Dan Elphick <delphick@chromium.org>
Cr-Commit-Position: refs/heads/master@{#56553}
parent 54855b67
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment