From 1f2cfa91c368c8c18fc21c97037454afdfe3f3d2 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 4 Jun 2007 15:05:59 +0000 Subject: [PATCH] Warning fix --- src/osgViewer/GraphicsWindowCarbon.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osgViewer/GraphicsWindowCarbon.cpp b/src/osgViewer/GraphicsWindowCarbon.cpp index 78bc96888..e44a7c9ef 100644 --- a/src/osgViewer/GraphicsWindowCarbon.cpp +++ b/src/osgViewer/GraphicsWindowCarbon.cpp @@ -495,8 +495,8 @@ struct OSXCarbonWindowingSystemInterface : public osg::GraphicsContext::Windowin /** return the top left coord of a specific screen in global screen space */ void getScreenTopLeft(const osg::GraphicsContext::ScreenIdentifier& si, int& x, int& y) { CGRect bounds = CGDisplayBounds( getDisplayID(si) ); - x = bounds.origin.x; - y = bounds.origin.y; + x = static_cast(bounds.origin.x); + y = static_cast(bounds.origin.y); // osg::notify(osg::DEBUG_INFO) << "topleft of screen " << si.screenNum <<" " << bounds.origin.x << "/" << bounds.origin.y << std::endl; }