Browse Source

64 bit assembly is NOT the same as 32 bit, changing the Math.cpp file to account for that, otherwise build errors occur on Win64 because it assumes 32 bit platform.

Peter C 13 years ago
parent
commit
1d31eb926f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/Core/Math.cpp

+ 1 - 1
Source/Core/Math.cpp

@@ -144,7 +144,7 @@ ROCKETCORE_API int RoundDown(float value)
 // Efficiently truncates a floating-point value into an integer.
 ROCKETCORE_API int RealToInteger(float value)
 {
-#if defined(ROCKET_PLATFORM_WIN32) && !defined(__MINGW32__)
+#if defined(ROCKET_PLATFORM_WIN32) && !defined(_M_X64)) && !defined(__amd64__) && !defined(__MINGW32__)
 	int i;
 	_asm
 	{