summaryrefslogtreecommitdiff
path: root/src/report.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/report.cc')
-rw-r--r--src/report.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/report.cc b/src/report.cc
index d632a0d2..cf71a895 100644
--- a/src/report.cc
+++ b/src/report.cc
@@ -642,10 +642,10 @@ value_t report_t::fn_trim(call_scope_t& args)
const char * p = buf.get();
const char * e = buf.get() + temp.length() - 1;
- while (p <= e && std::isspace(*p))
+ while (p <= e && std::isspace(static_cast<unsigned char>(*p)))
p++;
- while (e > p && std::isspace(*e))
+ while (e > p && std::isspace(static_cast<unsigned char>(*e)))
e--;
if (p > e) {