mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-02 06:16:08 +00:00
refactor: nuke __int64/__uint64 in Minecraft.World
This commit is contained in:
@@ -86,7 +86,7 @@ void DataOutputStream::writeByte(uint8_t a) {
|
||||
// counter written is incremented by 8. Parameters: v - a double value to be
|
||||
// written.
|
||||
void DataOutputStream::writeDouble(double a) {
|
||||
__int64 bits = Double::doubleToLongBits(a);
|
||||
int64_t bits = Double::doubleToLongBits(a);
|
||||
|
||||
writeLong(bits);
|
||||
// TODO 4J Stu - Error handling?
|
||||
@@ -122,7 +122,7 @@ void DataOutputStream::writeInt(int a) {
|
||||
// first. In no exception is thrown, the counter written is incremented by 8.
|
||||
// Parameters:
|
||||
// v - a long to be written.
|
||||
void DataOutputStream::writeLong(__int64 a) {
|
||||
void DataOutputStream::writeLong(int64_t a) {
|
||||
stream->write((a >> 56) & 0xff);
|
||||
stream->write((a >> 48) & 0xff);
|
||||
stream->write((a >> 40) & 0xff);
|
||||
|
||||
Reference in New Issue
Block a user