summaryrefslogtreecommitdiffstats
path: root/src/util.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2020-03-11 21:49:07 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2020-03-11 21:49:07 (GMT)
commit2eb03276f4651ea84c90b66cf3c78f8f3b96fab2 (patch)
treeeb847349043acb36fe5267dbfa0910df0dce31d9 /src/util.cpp
parentf24a0791257f7a5236ca24b5fbbfbe1bb9638486 (diff)
downloadDoxygen-2eb03276f4651ea84c90b66cf3c78f8f3b96fab2.zip
Doxygen-2eb03276f4651ea84c90b66cf3c78f8f3b96fab2.tar.gz
Doxygen-2eb03276f4651ea84c90b66cf3c78f8f3b96fab2.tar.bz2
Fixed unsigned/signed character warnings
Diffstat (limited to 'src/util.cpp')
-rw-r--r--src/util.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/util.cpp b/src/util.cpp
index 28af27b..97d03c5 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -6993,9 +6993,9 @@ bool checkIfTypedef(const Definition *scope,const FileDef *fileScope,const char
const char *writeUtf8Char(FTextStream &t,const char *s)
{
- char c=*s++;
- t << c;
- if (c<0) // multibyte character
+ uchar c=(uchar)*s++;
+ t << (char)c;
+ if (c>=0x80) // multibyte character
{
if (((uchar)c&0xE0)==0xC0)
{
@@ -7025,8 +7025,8 @@ int nextUtf8CharPosition(const QCString &utf8Str,uint len,uint startPos)
{
int bytes=1;
if (startPos>=len) return len;
- char c = utf8Str[startPos];
- if (c<0) // multibyte utf-8 character
+ uchar c = (uchar)utf8Str[startPos];
+ if (c>=0x80) // multibyte utf-8 character
{
if (((uchar)c&0xE0)==0xC0)
{