diff options
| author | void_17 <heroerror3@gmail.com> | 2026-03-02 15:53:32 +0700 |
|---|---|---|
| committer | void_17 <heroerror3@gmail.com> | 2026-03-02 15:53:32 +0700 |
| commit | d63f79325f85e014361eb8cf1e41eaebedb1ae71 (patch) | |
| tree | d9f28714afd516bc2450f33b0a77c5e05ff4de90 /Minecraft.World/Packet.h | |
| parent | d6ec138710461294c3ffd2723bc8a9f212d3471f (diff) | |
Get rid of MSVC's __int64
Use either int64_t, uint64_t or long long and unsigned long long, defined as per C++11 standard
Diffstat (limited to 'Minecraft.World/Packet.h')
| -rw-r--r-- | Minecraft.World/Packet.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Minecraft.World/Packet.h b/Minecraft.World/Packet.h index 60410df3..0bafe443 100644 --- a/Minecraft.World/Packet.h +++ b/Minecraft.World/Packet.h @@ -15,17 +15,17 @@ typedef shared_ptr<Packet> (*packetCreateFn)(); class Packet { public: - class PacketStatistics + class PacketStatistics { private: int count; int totalSize; // 4J Added - __int64 countSamples[512]; - __int64 sizeSamples[512]; + int64_t countSamples[512]; + int64_t sizeSamples[512]; int samplesPos; - __int64 firstSampleTime; + int64_t firstSampleTime; public: @@ -39,7 +39,7 @@ public: // 4J Added void renderStats(); - __int64 getCountSample(int samplePos); + int64_t getCountSample(int samplePos); wstring getLegendString(); }; @@ -58,7 +58,7 @@ public: static void map(int id, bool receiveOnClient, bool receiveOnServer, bool sendToAnyClient, bool renderStats, const type_info& clazz, packetCreateFn ); public: - const __int64 createTime; + const int64_t createTime; Packet(); @@ -84,7 +84,7 @@ public: static void renderPacketStats(int id); static void renderAllPacketStats(); static void renderAllPacketStatsKey(); - static __int64 getIndexedStatValue(unsigned int samplePos, unsigned int renderableId); + static int64_t getIndexedStatValue(unsigned int samplePos, unsigned int renderableId); private : static unordered_map<int, PacketStatistics *> statistics; |
