diff options
author | Alec Thomas <alec@swapoff.org> | 2015-09-16 19:40:43 +1000 |
---|---|---|
committer | Alec Thomas <alec@swapoff.org> | 2015-09-16 19:40:43 +1000 |
commit | e7db1f4d682a33d0c2a3c768b9a16dd3fac43350 (patch) | |
tree | a8569b89277d50672a6c86be911535c6fce66601 | |
parent | 6729c8341f15d046b87c0ac7f4f15e1c49c11440 (diff) | |
parent | 14351903970a0914a5fe69aaf7b276a3e801fcf4 (diff) |
Merge pull request #110 from rupertsteel/master
Fix size downcast warning on 64 bit builds.
-rw-r--r-- | entityx/Entity.h | 4 |
1 files changed, 2 insertions, 2 deletions
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<uint32_t>(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<uint32_t>(manager_->capacity()), unpacker_); } private: |