Remove all MSVC __int64 (#742)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user