size_t is __int64 for windows 64-bit platform. As I was once told, size_t can't be assumed to be either signed or unsigned.

James Killian
----- Original Message ----- From: "Jean-Sébastien Guay" <[email protected]>
To: "OpenSceneGraph Submissions" <[email protected]>
Sent: Thursday, February 05, 2009 10:11 AM
Subject: Re: [osg-submissions] warnings in inline methods


Hi Sukender,

I guess all of these should return a "size_t" instead of an "unsigned int" (or cast their return). MSVC generates this warning whereas size_t is an unsigned int.

I never got that warning... size_t should be a typedef to unsigned int... (or is it different in 2008, or on 64-bit platforms?) Weird.

J-S
--
______________________________________________________
Jean-Sebastien Guay    [email protected]
                               http://www.cm-labs.com/
                        http://whitestar02.webhop.org/
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org


_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to