summaryrefslogtreecommitdiffstats
path: root/src/Protocol
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-08-25 07:28:45 +0200
committerMattes D <github@xoft.cz>2014-08-25 07:28:45 +0200
commit8f20c359cd1f1086d4c312273fe052404755584f (patch)
tree4e1beb265a4e7ff4ae467fcdd051b6e39fb4abf6 /src/Protocol
parentAssume POWER is big-endian, so it compiles. (diff)
downloadcuberite-8f20c359cd1f1086d4c312273fe052404755584f.tar
cuberite-8f20c359cd1f1086d4c312273fe052404755584f.tar.gz
cuberite-8f20c359cd1f1086d4c312273fe052404755584f.tar.bz2
cuberite-8f20c359cd1f1086d4c312273fe052404755584f.tar.lz
cuberite-8f20c359cd1f1086d4c312273fe052404755584f.tar.xz
cuberite-8f20c359cd1f1086d4c312273fe052404755584f.tar.zst
cuberite-8f20c359cd1f1086d4c312273fe052404755584f.zip
Diffstat (limited to 'src/Protocol')
-rw-r--r--src/Protocol/MojangAPI.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Protocol/MojangAPI.cpp b/src/Protocol/MojangAPI.cpp
index 823ff5469..d107a8470 100644
--- a/src/Protocol/MojangAPI.cpp
+++ b/src/Protocol/MojangAPI.cpp
@@ -655,11 +655,11 @@ void cMojangAPI::CacheNamesToUUIDs(const AStringVector & a_PlayerNames)
}
// Store the returned results into cache:
- size_t JsonCount = root.size();
+ Json::Value::UInt JsonCount = root.size();
Int64 Now = time(NULL);
{
cCSLock Lock(m_CSNameToUUID);
- for (size_t idx = 0; idx < JsonCount; ++idx)
+ for (Json::Value::UInt idx = 0; idx < JsonCount; ++idx)
{
Json::Value & Val = root[idx];
AString JsonName = Val.get("name", "").asString();