forked from pool/doxygen
29 lines
882 B
Diff
29 lines
882 B
Diff
--- src/util.cpp.orig 2010-06-15 15:51:48.000000000 +0200
|
|
+++ src/util.cpp 2010-06-15 15:52:27.000000000 +0200
|
|
@@ -4794,9 +4794,9 @@
|
|
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)
|
|
{
|
|
@@ -4823,11 +4823,11 @@
|
|
case '+': strBuf.addStr("_09"); break;
|
|
case '=': strBuf.addStr("_0A"); 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];
|