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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user