bullet wasnt building on 64bit linux
authorCampbell Barton <ideasman42@gmail.com>
Sat, 13 Sep 2008 12:07:36 +0000 (12:07 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 13 Sep 2008 12:07:36 +0000 (12:07 +0000)
extern/bullet2/src/BulletCollision/CollisionDispatch/btCompoundCollisionAlgorithm.cpp

index da9336c55c7818af2eb89f103fbb5e4a17c3c2a4..5781281800759ca5bb658b090d00a8e55f2d29d8 100644 (file)
@@ -141,7 +141,7 @@ public:
        }
        void            Process(const btDbvtNode* leaf)
        {
-               int index = int(leaf->data);
+               int index = int(long(leaf->data));
 
                btCompoundShape* compoundShape = static_cast<btCompoundShape*>(m_compoundColObj->getCollisionShape());
                btCollisionShape* childShape = compoundShape->getChildShape(index);