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:
Benjamin Kramer
2010-04-08 15:25:57 +00:00
parent 180c3d4edd
commit 454c4ce479
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -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;