aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRupert Steel <rupert@rupertsteel.me>2015-09-16 19:46:50 +1200
committerRupert Steel <rupert@rupertsteel.me>2015-09-16 19:46:50 +1200
commit14351903970a0914a5fe69aaf7b276a3e801fcf4 (patch)
treea8569b89277d50672a6c86be911535c6fce66601
parent6729c8341f15d046b87c0ac7f4f15e1c49c11440 (diff)
Fix size downcast warning on 64 bit builds.
-rw-r--r--entityx/Entity.h4
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: