Add static cast to unsigned char whenever a character classification function is...
[oota-llvm.git] / tools / llvm-bcanalyzer / llvm-bcanalyzer.cpp
index 2ec85918c1c3eef213ccd82e95ad2d18b4bbb169..99479a46a88bbd02d54a67b647c86227df1e773a 100644 (file)
@@ -450,7 +450,7 @@ static bool ParseBlock(BitstreamCursor &Stream, unsigned BlockID,
         outs() << " blob data = ";
         bool BlobIsPrintable = true;
         for (unsigned i = 0, e = Blob.size(); i != e; ++i)
-          if (!isprint(Blob[i])) {
+          if (!isprint(static_cast<unsigned char>(Blob[i]))) {
             BlobIsPrintable = false;
             break;
           }