projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add static cast to unsigned char whenever a character classification function is...
[oota-llvm.git]
/
tools
/
llvm-bcanalyzer
/
llvm-bcanalyzer.cpp
diff --git
a/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
b/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
index 2ec85918c1c3eef213ccd82e95ad2d18b4bbb169..99479a46a88bbd02d54a67b647c86227df1e773a 100644
(file)
--- a/
tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
+++ b/
tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
@@
-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;
}