diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2021-04-08 19:32:31 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2021-04-08 19:32:31 (GMT) |
commit | bbafda6e8629d8513697021aa1d06e786084af54 (patch) | |
tree | 941fd08ad2a1b1177af627f14f5fc5af17296667 /src | |
parent | e03e2a29f9279deabe62d795b0db925a982d0eef (diff) | |
download | Doxygen-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.cpp | 2 |
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) |