Add static cast to unsigned char whenever a character classification function is called with a signed char argument, in order to avoid assertions in Windows Debug configuration.

llvm-svn: 175006
This commit is contained in:
Guy Benyei
2013-02-12 21:21:59 +00:00
parent 4e472b6328
commit 83c74e9fad
18 changed files with 80 additions and 56 deletions

View File

@@ -267,7 +267,7 @@ error_code COFFObjectFile::getSymbolNMTypeChar(DataRefImpl Symb,
}
if (symb->StorageClass == COFF::IMAGE_SYM_CLASS_EXTERNAL)
ret = ::toupper(ret);
ret = ::toupper(static_cast<unsigned char>(ret));
Result = ret;
return object_error::success;