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/

Reply via email to