mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-29 17:22:03 +00:00
remove toascii (#7234)
This commit is contained in:
@@ -85,7 +85,7 @@ static std::string ToValueString(const BinaryRegion ®ion,
|
|||||||
// Interpet each value as a ASCII to aid debugging
|
// Interpet each value as a ASCII to aid debugging
|
||||||
for (uint64_t i = 0; i < region.array_length; ++i) {
|
for (uint64_t i = 0; i < region.array_length; ++i) {
|
||||||
const uint8_t c = *(binary + region.offset + i);
|
const uint8_t c = *(binary + region.offset + i);
|
||||||
s += isprint(c) ? toascii(c) : '.';
|
s += isprint(c) ? static_cast<char>(c & 0x7F) : '.';
|
||||||
}
|
}
|
||||||
return s;
|
return s;
|
||||||
} else if (region.type == BinaryRegionType::Char) {
|
} else if (region.type == BinaryRegionType::Char) {
|
||||||
|
|||||||
Reference in New Issue
Block a user