aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/JavaMath.cpp
diff options
context:
space:
mode:
authorvoid_17 <61356189+void2012@users.noreply.github.com>2026-03-07 03:31:30 +0700
committerGitHub <noreply@github.com>2026-03-07 03:31:30 +0700
commit988e3042e00485aa7ed3725fe7bfde1da8cf8519 (patch)
treecf712d80b4d03eec73f935e0cce23020ddb6f5ef /Minecraft.World/JavaMath.cpp
parent175fc3824e502ecd701c1da2ecd2061d77495693 (diff)
Remove all MSVC `__int64` (#742)
Diffstat (limited to 'Minecraft.World/JavaMath.cpp')
-rw-r--r--Minecraft.World/JavaMath.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Minecraft.World/JavaMath.cpp b/Minecraft.World/JavaMath.cpp
index 92843695..87778c56 100644
--- a/Minecraft.World/JavaMath.cpp
+++ b/Minecraft.World/JavaMath.cpp
@@ -34,9 +34,9 @@ double Math::random()
//a - a floating-point value to be rounded to a long.
//Returns:
//the value of the argument rounded to the nearest long value.
-__int64 Math::round( double d )
+int64_t Math::round( double d )
{
- return (__int64)floor( d + 0.5 );
+ return (int64_t)floor( d + 0.5 );
}
int Math::_max(int a, int b)
@@ -59,7 +59,7 @@ float Math::_min(float a, float b)
return a < b ? a : b;
}
-float Math::wrapDegrees(float input)
+float Math::wrapDegrees(float input)
{
while(input>=360.0f)input-=360.0f;
if (input >= 180.0f) input -= 360.0f;
@@ -67,7 +67,7 @@ float Math::wrapDegrees(float input)
return input;
}
-double Math::wrapDegrees(double input)
+double Math::wrapDegrees(double input)
{
while(input>=360.0)input-=360.0;
if (input >= 180.0) input -= 360.0;