remove toascii (#7234)

This commit is contained in:
Derek Bailey
2022-04-07 20:48:26 -07:00
committed by GitHub
parent eee44bbb26
commit ab4bf59e8c

View File

@@ -85,7 +85,7 @@ static std::string ToValueString(const BinaryRegion &region,
// Interpet each value as a ASCII to aid debugging
for (uint64_t i = 0; i < region.array_length; ++i) {
const uint8_t c = *(binary + region.offset + i);
s += isprint(c) ? toascii(c) : '.';
s += isprint(c) ? static_cast<char>(c & 0x7F) : '.';
}
return s;
} else if (region.type == BinaryRegionType::Char) {