From eac9831723312cc2538e8e32fa7dfbc12609ecbd Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 13 Sep 2007 10:21:18 +0000 Subject: [PATCH] Add static_cast to fix warning. --- src/osgViewer/GraphicsWindowWin32.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgViewer/GraphicsWindowWin32.cpp b/src/osgViewer/GraphicsWindowWin32.cpp index 57a22e07a..f0e1b97a2 100644 --- a/src/osgViewer/GraphicsWindowWin32.cpp +++ b/src/osgViewer/GraphicsWindowWin32.cpp @@ -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(displayDevices.size())) { osg::notify(osg::WARN) << "Win32WindowingSystem::getScreenInformation() - Cannot get information for screen " << si.screenNum << " because it does not exist." << std::endl; return false;