diff options
author | Taylor R Campbell <campbell+ledger@mumble.net> | 2024-04-27 19:54:23 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2024-08-06 14:51:38 -1000 |
commit | d9967c2638052730c6eeb1624586d633d6482003 (patch) | |
tree | f6dd9d0a94cc633f4e1a4f0588c2cb613e0100e2 /src/expr.cc | |
parent | 762353945a744ae4b89970b9e08c2c22a52ddbff (diff) | |
download | fork-ledger-d9967c2638052730c6eeb1624586d633d6482003.tar.gz fork-ledger-d9967c2638052730c6eeb1624586d633d6482003.tar.bz2 fork-ledger-d9967c2638052730c6eeb1624586d633d6482003.zip |
Avoid ctype abuse.
fix https://github.com/ledger/ledger/issues/2338
fix https://github.com/ledger/ledger/issues/2340
Diffstat (limited to 'src/expr.cc')
-rw-r--r-- | src/expr.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/expr.cc b/src/expr.cc index 0866b8bb..720a6618 100644 --- a/src/expr.cc +++ b/src/expr.cc @@ -222,7 +222,7 @@ bool merged_expr_t::check_for_single_identifier(const string& expr) { bool single_identifier = true; for (const char * p = expr.c_str(); *p; ++p) - if (! std::isalnum(*p) || *p == '_') { + if (! std::isalnum(static_cast<unsigned char>(*p)) || *p == '_') { single_identifier = false; break; } |