summaryrefslogtreecommitdiffstats
path: root/src/AllocationPool.h
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-06-14 19:19:34 +0200
committerTycho <work.tycho+git@gmail.com>2014-06-14 19:19:34 +0200
commita2df68b80b3ccb4395922c4351d4bd2f366003db (patch)
treeb54f6fac25105ad1810fe5aa46a85608530a4405 /src/AllocationPool.h
parentfixed const issue (diff)
downloadcuberite-a2df68b80b3ccb4395922c4351d4bd2f366003db.tar
cuberite-a2df68b80b3ccb4395922c4351d4bd2f366003db.tar.gz
cuberite-a2df68b80b3ccb4395922c4351d4bd2f366003db.tar.bz2
cuberite-a2df68b80b3ccb4395922c4351d4bd2f366003db.tar.lz
cuberite-a2df68b80b3ccb4395922c4351d4bd2f366003db.tar.xz
cuberite-a2df68b80b3ccb4395922c4351d4bd2f366003db.tar.zst
cuberite-a2df68b80b3ccb4395922c4351d4bd2f366003db.zip
Diffstat (limited to '')
-rw-r--r--src/AllocationPool.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/AllocationPool.h b/src/AllocationPool.h
index e4f1427f6..f73b32601 100644
--- a/src/AllocationPool.h
+++ b/src/AllocationPool.h
@@ -19,7 +19,7 @@ class cAllocationPool {
cAllocationPool(std::auto_ptr<cStarvationCallbacks> a_Callbacks) :
m_Callbacks(a_Callbacks)
{
- for(int i = 0; i < NumElementsInReserve; i++)
+ for(size_t i = 0; i < NumElementsInReserve; i++)
{
void * space = malloc(sizeof(T));
if (space == NULL)