Get the order of the hext digits right!

llvm-svn: 37261
This commit is contained in:
Reid Spencer 2007-05-19 14:44:42 +00:00
parent 6473fb7916
commit e44b45e757
1 changed files with 2 additions and 2 deletions

View File

@ -195,12 +195,12 @@ static std::string QuoteNameIfNeeded(const std::string &Name) {
} else {
needsQuotes = true;
result += "\\";
char hex1 = C & 0x0F;
char hex1 = (C >> 4) & 0x0F;
if (hex1 < 10)
result += hex1 + '0';
else
result += hex1 - 10 + 'A';
char hex2 = (C >> 4) & 0x0F;
char hex2 = C & 0x0F;
if (hex2 < 10)
result += hex2 + '0';
else