Warning fixes

This commit is contained in:
Henrik Rydgard
2012-11-05 14:38:55 +01:00
parent b96859828f
commit ddfbd18370
3 changed files with 4 additions and 7 deletions
+1 -4
View File
@@ -139,15 +139,12 @@ bool TryParse(const std::string &str, u32 *const output)
if (ULONG_MAX > UINT_MAX) {
#ifdef _MSC_VER
#pragma warning disable(4309);
#pragma warning (disable:4309)
#endif
// Note: The typecasts avoid GCC warnings when long is 32 bits wide.
if (value >= static_cast<unsigned long>(0x100000000ull)
&& value <= static_cast<unsigned long>(0xFFFFFFFF00000000ull))
return false;
#ifdef _MSC_VER
#pragma warning enable(4309);
#endif
}
*output = static_cast<u32>(value);