Add static_cast to fix warning.

This commit is contained in:
Robert Osfield
2007-09-13 10:21:18 +00:00
parent 34af300957
commit eac9831723

View File

@@ -775,7 +775,7 @@ bool Win32WindowingSystem::getScreenInformation( const osg::GraphicsContext::Scr
DisplayDevices displayDevices;
enumerateDisplayDevices(displayDevices);
if (si.screenNum>=displayDevices.size())
if (si.screenNum>=static_cast<int>(displayDevices.size()))
{
osg::notify(osg::WARN) << "Win32WindowingSystem::getScreenInformation() - Cannot get information for screen " << si.screenNum << " because it does not exist." << std::endl;
return false;