summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2021-04-08 19:32:31 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2021-04-08 19:32:31 (GMT)
commitbbafda6e8629d8513697021aa1d06e786084af54 (patch)
tree941fd08ad2a1b1177af627f14f5fc5af17296667 /src
parente03e2a29f9279deabe62d795b0db925a982d0eef (diff)
downloadDoxygen-bbafda6e8629d8513697021aa1d06e786084af54.zip
Doxygen-bbafda6e8629d8513697021aa1d06e786084af54.tar.gz
Doxygen-bbafda6e8629d8513697021aa1d06e786084af54.tar.bz2
regex: Avoid wrong assumption that char is always signed.
Diffstat (limited to 'src')
-rw-r--r--src/regex.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/regex.cpp b/src/regex.cpp
index ae5476e..2a39f63 100644
--- a/src/regex.cpp
+++ b/src/regex.cpp
@@ -37,7 +37,7 @@ static inline bool isspace(char c)
static inline bool isalpha(char c)
{
- return c<0 || (c>='a' && c<='z') || (c>='A' && c<='Z');
+ return static_cast<unsigned char>(c)>=128 || (c>='a' && c<='z') || (c>='A' && c<='Z');
}
static inline bool isdigit(char c)