Skip to content

Commit d7426e2

Browse files
authored
[RemoteInspection] Fix format of dumped spare bit mask (#73231)
Even with `std::hex`, the `uint8_t` values are being printed as characters, not hex values. This change casts the value to `int`, which results in the hex representation being properly printed.
1 parent 49dd95f commit d7426e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/RemoteInspection/TypeRefBuilder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,7 @@ void TypeRefBuilder::ReflectionTypeDescriptorFinder::
921921
}
922922
const uint8_t *p = descriptor->getPayloadSpareBits();
923923
for (unsigned i = 0; i < maskBytes; i++) {
924-
stream << std::hex << std::setw(2) << std::setfill('0') << p[i];
924+
stream << std::hex << std::setw(2) << std::setfill('0') << (int)p[i];
925925
}
926926
stream << std::dec << "\n";
927927
}

0 commit comments

Comments
 (0)