refactor: nuke __int64/__uint64 in Minecraft.World

This commit is contained in:
Tropical
2026-03-21 17:10:36 -05:00
parent 8036565022
commit 357fca24aa
117 changed files with 251 additions and 251 deletions

View File

@@ -227,7 +227,7 @@ bool DataInputStream::readFully(charArray b) {
// the writeDouble method of interface DataOutput. Returns: the double value
// read.
double DataInputStream::readDouble() {
__int64 bits = readLong();
int64_t bits = readLong();
return Double::longBitsToDouble(bits);
}
@@ -283,22 +283,22 @@ int DataInputStream::readInt() {
//
// Returns:
// the long value read.
__int64 DataInputStream::readLong() {
int64_t DataInputStream::readLong() {
if (stream == NULL) {
app.DebugPrintf(
"DataInputStream::readLong() but underlying stream is NULL\n");
return 0;
}
__int64 a = stream->read();
__int64 b = stream->read();
__int64 c = stream->read();
__int64 d = stream->read();
__int64 e = stream->read();
__int64 f = stream->read();
__int64 g = stream->read();
__int64 h = stream->read();
int64_t a = stream->read();
int64_t b = stream->read();
int64_t c = stream->read();
int64_t d = stream->read();
int64_t e = stream->read();
int64_t f = stream->read();
int64_t g = stream->read();
int64_t h = stream->read();
__int64 bits =
int64_t bits =
(((a & 0xff) << 56) | ((b & 0xff) << 48) | ((c & 0xff) << 40) |
((d & 0xff) << 32) | ((e & 0xff) << 24) | ((f & 0xff) << 16) |
((g & 0xff) << 8) | ((h & 0xff)));
@@ -596,6 +596,6 @@ void DataInputStream::deleteChildStream() { delete stream; }
// pos and k is returned. Overrides: skip in class InputStream Parameters: n -
// the number of bytes to be skipped. Returns: the actual number of bytes
// skipped.
__int64 DataInputStream::skip(__int64 n) { return stream->skip(n); }
int64_t DataInputStream::skip(int64_t n) { return stream->skip(n); }
int DataInputStream::skipBytes(int n) { return skip(n); }