llvm.org GIT mirror llvm / 9bf9aa5
Fixes warnings emitted by Visual Studio 2010 compiler. Patch by Erik Olofsson! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126796 91177308-0d34-0410-b5e6-96231b3b80d8 Oscar Fuentes 9 years ago
3 changed file(s) with 5 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
273273 if (is64Bit())
274274 Write32(0); // reserved3
275275
276 assert(OS.tell() - Start == is64Bit() ? macho::Section64Size :
277 macho::Section32Size);
276 assert(OS.tell() - Start == (is64Bit() ? macho::Section64Size :
277 macho::Section32Size));
278278 }
279279
280280 void WriteSymtabLoadCommand(uint32_t SymbolOffset, uint32_t NumSymbols,
7272 }
7373
7474 TEST(MathExtras, FloatBits) {
75 static const float kValue = 5632.34;
75 static const float kValue = 5632.34f;
7676 EXPECT_FLOAT_EQ(kValue, BitsToFloat(FloatToBits(kValue)));
7777 }
7878
12571257 #pragma warning(push) // Saves the current warning state.
12581258 #pragma warning(disable:4389) // Temporarily disables warning on
12591259 // signed/unsigned mismatch.
1260 #pragma warning(disable:4805) // Temporarily disables warning on
1261 // unsafe mix of types
12601262 #endif
12611263
12621264 if (expected == actual) {