diff options
Diffstat (limited to 'src/rt/rust_shape.cpp')
| -rw-r--r-- | src/rt/rust_shape.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rt/rust_shape.cpp b/src/rt/rust_shape.cpp index ae578081164..8ad36af4ed2 100644 --- a/src/rt/rust_shape.cpp +++ b/src/rt/rust_shape.cpp @@ -394,7 +394,8 @@ log::walk_string2(const std::pair<ptr,ptr> &data) { if (isprint(ch)) { out << ch; } else if (ch) { - out << "\\x" << std::setw(2) << std::setfill('0') << (int)ch; + out << "\\x" << std::setw(2) << std::setfill('0') + << (unsigned int)(unsigned char)ch; } } ++subdp; |
