mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 06:33:24 +00:00
Squelch a warning
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14032 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
20924bc3dd
commit
54e3e8fd37
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user