Sorry  the change from size_t to unsigned int is the 2nd argument
stacksize...

 

From: [email protected]
[mailto:[email protected]] On Behalf Of Martin
Naylor
Sent: 27 March 2010 12:19
To: [email protected]
Subject: [osg-users] openthreads vs2008 x64 size_t warning.

 

Hi,

Having a look at a couple of warnings in testing the 64 bit build of the
latest svn with Visual Studio 2008.

I get a warning in the line of code in win32Thread.cpp, the error appears
because I have the option check portability issues switched on.

 

_beginthreadex(NULL,pd->stackSize,ThreadPrivateActions::StartThread,static_c
ast<void *>(this),0,&ID));

 

And below is the warning 

 

1              warning C4267: 'argument' : conversion from 'size_t' to
'unsigned int', possible loss of data
d:\Coding\OSG\OpenSceneGraphx64\src\OpenThreads\win32\Win32Thread.cpp
344         OpenThreads

 

The type in the Microsoft Header file process.h is of unsigned int, should
the relevant bits in openthreads be changed to unsigned int?

 

 

Martin.

 

 

 

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

Reply via email to