diff options
| author | void_17 <61356189+void2012@users.noreply.github.com> | 2026-03-07 03:31:30 +0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-07 03:31:30 +0700 |
| commit | 988e3042e00485aa7ed3725fe7bfde1da8cf8519 (patch) | |
| tree | cf712d80b4d03eec73f935e0cce23020ddb6f5ef /Minecraft.World/Packet.cpp | |
| parent | 175fc3824e502ecd701c1da2ecd2061d77495693 (diff) | |
Remove all MSVC `__int64` (#742)
Diffstat (limited to 'Minecraft.World/Packet.cpp')
| -rw-r--r-- | Minecraft.World/Packet.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Minecraft.World/Packet.cpp b/Minecraft.World/Packet.cpp index a37cb2ad..61e3cc63 100644 --- a/Minecraft.World/Packet.cpp +++ b/Minecraft.World/Packet.cpp @@ -252,11 +252,11 @@ void Packet::updatePacketStatsPIX() for( auto it = outgoingStatistics.begin(); it != outgoingStatistics.end(); it++ ) { Packet::PacketStatistics *stat = it->second; - __int64 count = stat->getRunningCount(); + int64_t count = stat->getRunningCount(); wchar_t pixName[256]; swprintf_s(pixName,L"Packet count %d",stat->id); // PIXReportCounter(pixName,(float)count); - __int64 total = stat->getRunningTotal(); + int64_t total = stat->getRunningTotal(); swprintf_s(pixName,L"Packet bytes %d",stat->id); PIXReportCounter(pixName,(float)total); stat->IncrementPos(); @@ -451,10 +451,10 @@ int Packet::PacketStatistics::getTotalSize() return totalSize; } -__int64 Packet::PacketStatistics::getRunningTotal() +int64_t Packet::PacketStatistics::getRunningTotal() { - __int64 total = 0; - __int64 currentTime = System::currentTimeMillis(); + int64_t total = 0; + int64_t currentTime = System::currentTimeMillis(); for( int i = 0; i < TOTAL_TICKS; i++ ) { if( currentTime - timeSamples[i] <= 1000 ) @@ -465,10 +465,10 @@ __int64 Packet::PacketStatistics::getRunningTotal() return total; } -__int64 Packet::PacketStatistics::getRunningCount() +int64_t Packet::PacketStatistics::getRunningCount() { - __int64 total = 0; - __int64 currentTime = System::currentTimeMillis(); + int64_t total = 0; + int64_t currentTime = System::currentTimeMillis(); for( int i = 0; i < TOTAL_TICKS; i++ ) { if( currentTime - timeSamples[i] <= 1000 ) |
