Skip to content

Commit 34284fe

Browse files
committed
Fix Math::fast_ftoi using Windows Phone 8 code everywhere
1 parent 13cd2d9 commit 34284fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/godot_cpp/core/math.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,7 @@ inline double pingpong(double value, double length) {
768768
inline int fast_ftoi(float a) {
769769
static int b;
770770

771-
#if (defined(_WIN32_WINNT) && _WIN32_WINNT >= 0x0603) || WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP // windows 8 phone?
771+
#if (defined(_WIN32_WINNT) && _WIN32_WINNT >= 0x0603) || (defined(WINAPI_FAMILY) && WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP) // windows 8 phone?
772772
b = (int)((a > 0.0) ? (a + 0.5) : (a - 0.5));
773773

774774
#elif defined(_MSC_VER) && _MSC_VER < 1800

0 commit comments

Comments
 (0)