I think you might want to use a predefined/build-in value for casting
pointers, so that portability problems are avoided ( want something
that will work across platforms and arches)
When I hit this problem I used 'size_t' as the type to cast pointers to.
Somebody more familiar with porting c++ code should confirm it's the
appropriate type to use.
--------------------------
Radu Mihai
[EMAIL PROTECTED]
On 16-Aug-06, at 6:05 PM, E. Wing wrote:
For kicks, I thought I would try compiling OSG under 64-bit on OS
X/gcc4. I'm currently stuck in OpenThreads.
The method Thread::getProcessID() (in the pthreads backend) is giving
me compiler errors about casting from '_opaque_pthread_t* to int and
unsigned int.
(The unsigned part looks like a minor bug too.)
I gather the problem is that it's trying to cast a 64-bit (pointer) to
a 32-bit (int). int is still defined as 32-bit under 64-bit OS X. long
is defined as 64-bit which might be the better datatype to use. But
I'm wondering how we might fix this while being correct and not
breaking anybody else.
Thanks,
Eric
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/