aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/Mth.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/Mth.cpp
parent175fc3824e502ecd701c1da2ecd2061d77495693 (diff)
Remove all MSVC `__int64` (#742)
Diffstat (limited to 'Minecraft.World/Mth.cpp')
-rw-r--r--Minecraft.World/Mth.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Minecraft.World/Mth.cpp b/Minecraft.World/Mth.cpp
index ab990e6c..77987917 100644
--- a/Minecraft.World/Mth.cpp
+++ b/Minecraft.World/Mth.cpp
@@ -51,9 +51,9 @@ int Mth::floor(float v)
return v < i ? i - 1 : i;
}
-__int64 Mth::lfloor(double v)
+int64_t Mth::lfloor(double v)
{
- __int64 i = (__int64) v;
+ int64_t i = (int64_t) v;
return v < i ? i - 1 : i;
}
@@ -221,8 +221,8 @@ wstring Mth::createInsecureUUID(Random *random)
{
wchar_t output[33];
output[32] = 0;
- __int64 high = (random->nextLong() & ~UUID_VERSION) | UUID_VERSION_TYPE_4;
- __int64 low = (random->nextLong() & ~UUID_VARIANT) | UUID_VARIANT_2;
+ int64_t high = (random->nextLong() & ~UUID_VERSION) | UUID_VERSION_TYPE_4;
+ int64_t low = (random->nextLong() & ~UUID_VARIANT) | UUID_VARIANT_2;
for(int i = 0; i < 16; i++ )
{
wchar_t nybbleHigh = high & 0xf;