mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 08:17:40 +00:00
Various MSVC warning fixes about truncated 64 bit shifts and const pointers passed to free.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100767 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -635,7 +635,7 @@ void Filter::recurse() {
|
||||
|
||||
// Marks all the segment positions with either BIT_TRUE or BIT_FALSE.
|
||||
for (bitIndex = 0; bitIndex < NumBits; bitIndex++) {
|
||||
if (mapIterator->first & (1 << bitIndex))
|
||||
if (mapIterator->first & (1ULL << bitIndex))
|
||||
BitValueArray[StartBit + bitIndex] = BIT_TRUE;
|
||||
else
|
||||
BitValueArray[StartBit + bitIndex] = BIT_FALSE;
|
||||
@@ -857,7 +857,7 @@ bool FilterChooser::fieldFromInsn(uint64_t &Field, insn_t &Insn,
|
||||
return false;
|
||||
|
||||
if (Insn[StartBit + i] == BIT_TRUE)
|
||||
Field = Field | (1 << i);
|
||||
Field = Field | (1ULL << i);
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user