News : The level of daily SPAM has reached insane proportions, all registrations are now manual. I ask you to send me an e-mail (john (at) murga (dot) org), to confirm that you want me to create an account for you.


Post Reply  Post Thread 
build problems on amd64
Author Message
dcharno
Junior Member
**


Posts: 10
Group: Registered
Joined: May 2007
Status: Offline
Reputation: 0
Post: #1
RE: build problems on amd64

Juergen Wrote:
If I remember correctly (I have currently no such machine at hand), the size of int is 32 bit on amd64 (with gcc) and the size of void* is of course 64bit. Therefore the cast is wrong. It looks like the code is not 64 bit clean (at least not on AMD64 with gcc), because it makes some assumptions that are not always true.


Yes, this is exactly what is happening -- trying to store a 64-bit pointer in a 32-bit int. I was thinking about creating a C++ container to map a unique integer to the udata pointer.

05-12-2007 06:59 AM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Messages In This Thread
build problems on amd64 - dcharno - 05-05-2007, 03:40 PM
RE: build problems on amd64 - Tobi - 05-11-2007, 04:44 PM
RE: build problems on amd64 - Juergen - 05-11-2007, 09:29 PM
RE: build problems on amd64 - dcharno - 05-12-2007 06:59 AM

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: