Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r51911 - sandbox/guigl/libs/guigl/example
From: andreytorba_at_[hidden]
Date: 2009-03-22 16:45:26


Author: andreo
Date: 2009-03-22 16:45:26 EDT (Sun, 22 Mar 2009)
New Revision: 51911
URL: http://svn.boost.org/trac/boost/changeset/51911

Log:
deleted warning in window_example.cpp
Text files modified:
   sandbox/guigl/libs/guigl/example/window_example.cpp | 7 +++++--
   1 files changed, 5 insertions(+), 2 deletions(-)

Modified: sandbox/guigl/libs/guigl/example/window_example.cpp
==============================================================================
--- sandbox/guigl/libs/guigl/example/window_example.cpp (original)
+++ sandbox/guigl/libs/guigl/example/window_example.cpp 2009-03-22 16:45:26 EDT (Sun, 22 Mar 2009)
@@ -25,9 +25,12 @@
 
 using namespace boost::guigl;
 
-color_type make_grey(float value)
+color_type make_grey(double value)
 {
- return color_type(value, value, value);
+ return color_type(
+ static_cast<float>(value),
+ static_cast<float>(value),
+ static_cast<float>(value));
 }
 
 void idle()


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk