aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/Mth.cpp
diff options
context:
space:
mode:
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;