SHA256
1
0
forked from pool/doxygen
doxygen/doxygen-1.7.0-warnings.patch

31 lines
978 B
Diff

Index: src/util.cpp
===================================================================
--- src/util.cpp.orig
+++ src/util.cpp
@@ -4807,9 +4807,9 @@ QCString escapeCharsInString(const char
static bool caseSenseNames = Config_getBool("CASE_SENSE_NAMES");
static StrBuf strBuf;
strBuf.clear();
- char c;
+ unsigned char c;
const char *p=name;
- while ((c=*p++)!=0)
+ while ((c=(unsigned char)*p++)!=0)
{
switch(c)
{
@@ -4837,11 +4837,11 @@ QCString escapeCharsInString(const char
case '=': strBuf.addStr("_0A"); break;
case '$': strBuf.addStr("_0B"); break;
default:
- if (c<0)
+ if (c>0x7f)
{
static char map[] = "0123456789ABCDEF";
char ids[5];
- unsigned char id = (unsigned char)c;
+ unsigned char id = c;
ids[0]='_';
ids[1]='x';
ids[2]=map[id>>4];