mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-07-09 00:39:56 +00:00
refactor: nuke __int64/__uint64 in Minecraft.World
This commit is contained in:
@@ -161,19 +161,19 @@ int ByteBuffer::getInt(unsigned int index) {
|
||||
//
|
||||
// Returns:
|
||||
// The long value at the buffer's current position
|
||||
__int64 ByteBuffer::getLong() {
|
||||
int64_t ByteBuffer::getLong() {
|
||||
assert(m_position + 8 < m_limit);
|
||||
|
||||
__int64 value = 0;
|
||||
int64_t value = 0;
|
||||
|
||||
__int64 b1 = static_cast<__int64>(buffer[m_position]);
|
||||
__int64 b2 = static_cast<__int64>(buffer[m_position + 1]);
|
||||
__int64 b3 = static_cast<__int64>(buffer[m_position + 2]);
|
||||
__int64 b4 = static_cast<__int64>(buffer[m_position + 3]);
|
||||
__int64 b5 = static_cast<__int64>(buffer[m_position + 4]);
|
||||
__int64 b6 = static_cast<__int64>(buffer[m_position + 5]);
|
||||
__int64 b7 = static_cast<__int64>(buffer[m_position + 6]);
|
||||
__int64 b8 = static_cast<__int64>(buffer[m_position + 7]);
|
||||
int64_t b1 = static_cast<int64_t>(buffer[m_position]);
|
||||
int64_t b2 = static_cast<int64_t>(buffer[m_position + 1]);
|
||||
int64_t b3 = static_cast<int64_t>(buffer[m_position + 2]);
|
||||
int64_t b4 = static_cast<int64_t>(buffer[m_position + 3]);
|
||||
int64_t b5 = static_cast<int64_t>(buffer[m_position + 4]);
|
||||
int64_t b6 = static_cast<int64_t>(buffer[m_position + 5]);
|
||||
int64_t b7 = static_cast<int64_t>(buffer[m_position + 6]);
|
||||
int64_t b8 = static_cast<int64_t>(buffer[m_position + 7]);
|
||||
|
||||
m_position += 8;
|
||||
|
||||
@@ -341,7 +341,7 @@ ByteBuffer* ByteBuffer::putShortArray(shortArray& s) {
|
||||
// value - The long value to be written
|
||||
// Returns:
|
||||
// This buffer
|
||||
ByteBuffer* ByteBuffer::putLong(__int64 value) {
|
||||
ByteBuffer* ByteBuffer::putLong(int64_t value) {
|
||||
assert(m_position + 7 < m_limit);
|
||||
|
||||
if (byteOrder == BIGENDIAN) {
|
||||
|
||||
Reference in New Issue
Block a user