From ab4bf59e8ca25776581762147b84a04caefcf235 Mon Sep 17 00:00:00 2001 From: Derek Bailey Date: Thu, 7 Apr 2022 20:48:26 -0700 Subject: [PATCH] remove toascii (#7234) --- src/annotated_binary_text_gen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {