1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00

Fixes warnings emitted by Visual Studio 2010 compiler.

Patch by Erik Olofsson!

llvm-svn: 126796
This commit is contained in:
Oscar Fuentes 2011-03-01 23:11:57 +00:00
parent 8233c58f5d
commit 15a668f50b
3 changed files with 5 additions and 3 deletions

View File

@ -274,8 +274,8 @@ public:
if (is64Bit())
Write32(0); // reserved3
assert(OS.tell() - Start == is64Bit() ? macho::Section64Size :
macho::Section32Size);
assert(OS.tell() - Start == (is64Bit() ? macho::Section64Size :
macho::Section32Size));
}
void WriteSymtabLoadCommand(uint32_t SymbolOffset, uint32_t NumSymbols,

View File

@ -73,7 +73,7 @@ TEST(MathExtras, CountLeadingOnes_64) {
}
TEST(MathExtras, FloatBits) {
static const float kValue = 5632.34;
static const float kValue = 5632.34f;
EXPECT_FLOAT_EQ(kValue, BitsToFloat(FloatToBits(kValue)));
}

View File

@ -1258,6 +1258,8 @@ AssertionResult CmpHelperEQ(const char* expected_expression,
#pragma warning(push) // Saves the current warning state.
#pragma warning(disable:4389) // Temporarily disables warning on
// signed/unsigned mismatch.
#pragma warning(disable:4805) // Temporarily disables warning on
// unsafe mix of types
#endif
if (expected == actual) {