64 bit pointers

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

64 bit pointers

Postby carli2 » Sat Feb 16, 2013 9:45 am

Hi,

Code: Select all
In file included from ../../source/physics/dgWorld.h:27:0,
                 from ../../source/physics/dgCollisionUserMesh.cpp:24:
../../source/physics/dgContact.h: In constructor ‘dgCollisionParamProxy::dgCollisionParamProxy(dgContact*, dgContactPoint*, bool, dgInt32)’:
../../source/physics/dgContact.h:114:27: warning: ‘dgCollisionParamProxy::m_polyMeshData’ will be initialized after [-Wreorder]
../../source/physics/dgContact.h:113:18: warning:   ‘dgContactPoint* dgCollisionParamProxy::m_contacts’ [-Wreorder]
../../source/physics/dgContact.h:122:2: warning:   when initialized here [-Wreorder]
../../source/physics/dgCollisionUserMesh.cpp: In member function ‘virtual dgFloat32 dgCollisionUserMesh::RayCast(const dgVector&, const dgVector&, dgContactPoint&, const dgBody*, void*) const’:
../../source/physics/dgCollisionUserMesh.cpp:128:49: error: cast from ‘dgInt32* {aka int*}’ to ‘dgInt32 {aka int}’ loses precision [-fpermissive]
make: *** [../../source/physics/dgCollisionUserMesh.o] Error 1


When I change the dgInt32* to dgInt32 in dgCollisionUserMesh.h, it compiles. But I think that's not the final solution.
Can you please fix properly?
carli2
 
Posts: 157
Joined: Thu Nov 10, 2011 1:53 pm

Re: 64 bit pointers

Postby Julio Jerez » Thu Feb 21, 2013 4:03 pm

I recently change the user data to be a pointer. this is because in 64 bit pointer are 64 bit while int are 32, this make is dificult to use pass pointe as user data tha is an integer in 64 bit.

Is this bug happening in 64 bit using a user mesh?
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: 64 bit pointers

Postby carli2 » Sat Feb 23, 2013 9:32 am

Julio Jerez wrote:I recently change the user data to be a pointer. this is because in 64 bit pointer are 64 bit while int are 32, this make is dificult to use pass pointe as user data tha is an integer in 64 bit.

Is this bug happening in 64 bit using a user mesh?


This bug is happening while compiling newton. Please fix it.
carli2
 
Posts: 157
Joined: Thu Nov 10, 2011 1:53 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron