From 6e44fb101517a60beaba29ac99789a36ab7ce98e Mon Sep 17 00:00:00 2001 From: Florent Rougon Date: Sat, 11 Mar 2017 21:49:23 +0100 Subject: [PATCH] Fix unsigned int vs. int problem in SplashScreen::manuallyResizeFBO() Justified because: osg::Camera::getNumChildren() returns an unsigned int, and osg::Camera::getChild() takes an unsigned int --- src/Viewer/splash.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Viewer/splash.cxx b/src/Viewer/splash.cxx index d92d25ef9..6e6367c7e 100644 --- a/src/Viewer/splash.cxx +++ b/src/Viewer/splash.cxx @@ -543,7 +543,7 @@ void SplashScreen::manuallyResizeFBO(int width, int height) osg::ref_ptr newCam = createFBOCamera(); // swap everything around - for (int i=0; i<_splashFBOCamera->getNumChildren(); ++i) { + for (unsigned int i=0; i < _splashFBOCamera->getNumChildren(); ++i) { newCam->addChild(_splashFBOCamera->getChild(i)); }