From 2017951589ef497ac05804fbb7db96a58554997b Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Wed, 22 Apr 2015 23:44:51 +0000 Subject: [PATCH] scene: fix a compilation error on 64-bit architectures. --- src/scene.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/scene.cpp b/src/scene.cpp index 6490b95a..a44a2643 100644 --- a/src/scene.cpp +++ b/src/scene.cpp @@ -73,7 +73,7 @@ private: /* Primitives will be kept until: * - Updated by entity * - Scene is destroyed */ - map > m_primitives_; + map > m_primitives_; /* Old API */ float m_new_line_time; @@ -311,7 +311,8 @@ void Scene::AddPrimitive(Primitive* primitive) //----------------------------------------------------------------------------- void Scene::AddPrimitive(Entity* entity, Primitive* primitive) { - data->m_primitives_[(uint32_t)entity /* I don't like that */].push(primitive, nullptr); + /* FIXME: data->m_primitives_ is never emptied or even used. */ + data->m_primitives_[(uintptr_t)entity /* I don't like that */].push(primitive, nullptr); } //-----------------------------------------------------------------------------