diff --git a/src/annotated_binary_text_gen.cpp b/src/annotated_binary_text_gen.cpp index 2e94acd2a..ec30b1dd6 100644 --- a/src/annotated_binary_text_gen.cpp +++ b/src/annotated_binary_text_gen.cpp @@ -85,7 +85,7 @@ static std::string ToValueString(const BinaryRegion ®ion, // 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(c & 0x7F) : '.'; } return s; } else if (region.type == BinaryRegionType::Char) {