summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/COFFObjectFile.cpp
diff options
context:
space:
mode:
authorGuy Benyei <guy.benyei@intel.com>2013-02-12 21:21:59 +0000
committerGuy Benyei <guy.benyei@intel.com>2013-02-12 21:21:59 +0000
commit83c74e9fad4442998a780dc7707461713615fd82 (patch)
treefea31fcb6ba5dc4d108529fe1707cad4fc7eeb4f /llvm/lib/Object/COFFObjectFile.cpp
parent4e472b63280f208edf086c843725ec5935baa93f (diff)
downloadbcm5719-llvm-83c74e9fad4442998a780dc7707461713615fd82.tar.gz
bcm5719-llvm-83c74e9fad4442998a780dc7707461713615fd82.zip
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
Diffstat (limited to 'llvm/lib/Object/COFFObjectFile.cpp')
-rw-r--r--llvm/lib/Object/COFFObjectFile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Object/COFFObjectFile.cpp b/llvm/lib/Object/COFFObjectFile.cpp
index 0b7ee34c09a..ca90e0e3c3f 100644
--- a/llvm/lib/Object/COFFObjectFile.cpp
+++ b/llvm/lib/Object/COFFObjectFile.cpp
@@ -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;
OpenPOWER on IntegriCloud