summaryrefslogtreecommitdiffstats
path: root/src/markdown.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/markdown.cpp
parentf24a0791257f7a5236ca24b5fbbfbe1bb9638486 (diff)
downloadDoxygen-2eb03276f4651ea84c90b66cf3c78f8f3b96fab2.zip
Doxygen-2eb03276f4651ea84c90b66cf3c78f8f3b96fab2.tar.gz
Doxygen-2eb03276f4651ea84c90b66cf3c78f8f3b96fab2.tar.bz2
Fixed unsigned/signed character warnings
Diffstat (limited to 'src/markdown.cpp')
-rw-r--r--src/markdown.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/markdown.cpp b/src/markdown.cpp
index caf77b5..b99db00 100644
--- a/src/markdown.cpp
+++ b/src/markdown.cpp
@@ -109,7 +109,7 @@ static Entry *g_current;
static QCString g_fileName;
static int g_lineNr;
static int g_indentLevel=0; // 0 is outside markdown, -1=page level
-static const char g_utf8_nbsp[3] = {'\xc2', '\xa0', '\0'}; // UTF-8 nbsp
+static const uchar g_utf8_nbsp[3] = { 0xc2, 0xa0, 0}; // UTF-8 nbsp
static const char *g_doxy_nsbp = "&_doxy_nbsp;"; // doxygen escape command for UTF-8 nbsp
//----------
@@ -1036,7 +1036,7 @@ static void addStrEscapeUtf8Nbsp(GrowBuf &out,const char *s,int len)
}
else // escape needed -> slow
{
- out.addStr(substitute(QCString(s).left(len),g_doxy_nsbp,g_utf8_nbsp));
+ out.addStr(substitute(QCString(s).left(len),g_doxy_nsbp,(const char *)g_utf8_nbsp));
}
}
@@ -2487,8 +2487,8 @@ static QCString detab(const QCString &s,int &refIndent)
default: // non-whitespace => update minIndent
if (c<0 && i<size) // multibyte sequence
{
- // special handling of the UTF-8 nbsp character 0xc2 0xa0
- if (c == '\xc2' && data[i] == '\xa0')
+ // special handling of the UTF-8 nbsp character 0xC2 0xA0
+ if ((uchar)c == 0xC2 && (uchar)(data[i]) == 0xA0)
{
out.addStr(g_doxy_nsbp);
i++;