Squelch a warning
authorChris Lattner <sabre@nondot.org>
Fri, 4 Jun 2004 23:53:20 +0000 (23:53 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 4 Jun 2004 23:53:20 +0000 (23:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14032 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/AsmWriter.cpp

index aec653e414963bfebb5a0d79e89a522011f3251d..e53d29bb86e151fa28a54d6afead8827733cb2bc 100644 (file)
@@ -421,7 +421,8 @@ static void WriteConstantInt(std::ostream &Out, const Constant *CV,
     if (isString) {
       Out << "c\"";
       for (unsigned i = 0; i < CA->getNumOperands(); ++i) {
-        unsigned char C = cast<ConstantInt>(CA->getOperand(i))->getRawValue();
+        unsigned char C = 
+          (unsigned char)cast<ConstantInt>(CA->getOperand(i))->getRawValue();
         
         if (isprint(C) && C != '"' && C != '\\') {
           Out << C;