From 988e3042e00485aa7ed3725fe7bfde1da8cf8519 Mon Sep 17 00:00:00 2001 From: void_17 <61356189+void2012@users.noreply.github.com> Date: Sat, 7 Mar 2026 03:31:30 +0700 Subject: Remove all MSVC `__int64` (#742) --- Minecraft.World/Mth.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Minecraft.World/Mth.cpp') 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; -- cgit v1.2.3