Remove all MSVC __int64 (#742)

This commit is contained in:
void_17
2026-03-07 03:31:30 +07:00
committed by GitHub
parent 175fc3824e
commit 988e3042e0
277 changed files with 3672 additions and 3684 deletions

View File

@@ -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;