mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-05-25 11:36:48 +00:00
refactor: nuke __int64/__uint64 in Minecraft.World
This commit is contained in:
@@ -34,7 +34,7 @@ double Math::random() { return Math::rand.nextDouble(); }
|
||||
// the value of Long.MAX_VALUE, the result is equal to the value of
|
||||
// Long.MAX_VALUE. Parameters: a - a floating-point value to be rounded to a
|
||||
// long. Returns: the value of the argument rounded to the nearest long value.
|
||||
__int64 Math::round(double d) {
|
||||
int64_t Math::round(double d) {
|
||||
// 4jcraft fixes the fact that if double is a huge
|
||||
// number than the cast of d to int64_t overflows
|
||||
|
||||
|
||||
Reference in New Issue
Block a user