summaryrefslogtreecommitdiff
path: root/src/xact.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/xact.cc')
-rw-r--r--src/xact.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/xact.cc b/src/xact.cc
index a0e5b8b4..0a080901 100644
--- a/src/xact.cc
+++ b/src/xact.cc
@@ -116,8 +116,10 @@ value_t xact_base_t::magnitude() const
namespace {
inline bool account_ends_with_special_char(const string& name) {
string::size_type len(name.length());
- return (std::isdigit(name[len - 1]) || name[len - 1] == ')' ||
- name[len - 1] == '}' || name[len - 1] == ']');
+ return (std::isdigit(static_cast<unsigned char>(name[len - 1])) ||
+ name[len - 1] == ')' ||
+ name[len - 1] == '}' ||
+ name[len - 1] == ']');
}
struct add_balancing_post