aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/ChunkPos.h
diff options
context:
space:
mode:
authorvoid_17 <61356189+void2012@users.noreply.github.com>2026-03-07 03:31:30 +0700
committerGitHub <noreply@github.com>2026-03-07 03:31:30 +0700
commit988e3042e00485aa7ed3725fe7bfde1da8cf8519 (patch)
treecf712d80b4d03eec73f935e0cce23020ddb6f5ef /Minecraft.World/ChunkPos.h
parent175fc3824e502ecd701c1da2ecd2061d77495693 (diff)
Remove all MSVC `__int64` (#742)
Diffstat (limited to 'Minecraft.World/ChunkPos.h')
-rw-r--r--Minecraft.World/ChunkPos.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Minecraft.World/ChunkPos.h b/Minecraft.World/ChunkPos.h
index 2a3fda02..55bd1ebb 100644
--- a/Minecraft.World/ChunkPos.h
+++ b/Minecraft.World/ChunkPos.h
@@ -10,7 +10,7 @@ public:
ChunkPos(int x, int z);
- static __int64 hashCode(int x, int z);
+ static int64_t hashCode(int x, int z);
int hashCode();
double distanceToSqr(shared_ptr<Entity> e);
@@ -22,7 +22,7 @@ public:
TilePos getMiddleBlockPosition(int y);
wstring toString();
- static __int64 hash_fnct(const ChunkPos &k);
+ static int64_t hash_fnct(const ChunkPos &k);
static bool eq_test(const ChunkPos &x, const ChunkPos &y);
bool operator == (const ChunkPos &k) const { return (this->x == k.x) && ( this->z == k.z); }
ChunkPos & operator= (const ChunkPos & other) { x = other.x; z = other.z; return *this; }
@@ -30,12 +30,12 @@ public:
struct ChunkPosKeyHash
{
- inline __int64 operator()(const ChunkPos &k) const
+ inline int64_t operator()(const ChunkPos &k) const
{ return ChunkPos::hash_fnct(k); }
};
struct ChunkPosKeyEq
{
- inline bool operator()(const ChunkPos &x, const ChunkPos &y) const
+ inline bool operator()(const ChunkPos &x, const ChunkPos &y) const
{ return ChunkPos::eq_test(x, y); }
}; \ No newline at end of file