changed the size of some local vars for 64bit linux.
authorKent Mein <mein@cs.umn.edu>
Fri, 6 Jan 2006 15:29:11 +0000 (15:29 +0000)
committerKent Mein <mein@cs.umn.edu>
Fri, 6 Jan 2006 15:29:11 +0000 (15:29 +0000)
also added a newline at the end of the file to shut gcc up.

Kent

source/gameengine/Ketsji/KX_MaterialIpoController.cpp

index d7a1406b5076a9bd39ed5d578e50a1847b1a0521..c0757a32b9c1d00f633fa281020631a922708a7f 100644 (file)
@@ -75,10 +75,10 @@ SG_Controller*      KX_MaterialIpoController::GetReplica(class SG_Node* destnode)
                iporeplica->AddInterpolator(copyipo);
 
                MT_Scalar* scaal = ((KX_ScalarInterpolator*)*i)->GetTarget();
-               int orgbase = (int)this;
-               int orgloc = (int)scaal;
-               int offset = orgloc-orgbase;
-               int newaddrbase = (int)iporeplica + offset;
+               long orgbase = (long)this;
+               long orgloc = (long)scaal;
+               long offset = orgloc-orgbase;
+               long newaddrbase = (long)iporeplica + offset;
                MT_Scalar* blaptr = (MT_Scalar*) newaddrbase;
                copyipo->SetNewTarget((MT_Scalar*)blaptr);
        }
@@ -94,4 +94,5 @@ KX_MaterialIpoController::~KX_MaterialIpoController()
                delete (*i);
        }
        
-}
\ No newline at end of file
+}
+