From: Rupert Steel Date: Wed, 16 Sep 2015 07:46:50 +0000 (+1200) Subject: Fix size downcast warning on 64 bit builds. X-Git-Url: https://code.bitgloo.com/?a=commitdiff_plain;h=14351903970a0914a5fe69aaf7b276a3e801fcf4;p=clyne%2Fentityx.git Fix size downcast warning on 64 bit builds. --- diff --git a/entityx/Entity.h b/entityx/Entity.h index 4fc5f5e..3d0b96f 100644 --- a/entityx/Entity.h +++ b/entityx/Entity.h @@ -495,9 +495,9 @@ class EntityManager : entityx::help::NonCopyable { Iterator begin() { return Iterator(manager_, mask_, 0, unpacker_); } - Iterator end() { return Iterator(manager_, mask_, manager_->capacity(), unpacker_); } + Iterator end() { return Iterator(manager_, mask_, static_cast(manager_->capacity()), unpacker_); } const Iterator begin() const { return Iterator(manager_, mask_, 0, unpacker_); } - const Iterator end() const { return Iterator(manager_, mask_, manager_->capacity(), unpacker_); } + const Iterator end() const { return Iterator(manager_, mask_, static_cast(manager_->capacity()), unpacker_); } private: