Boost logo

Boost-Commit :

From: troyer_at_[hidden]
Date: 2007-12-24 02:06:12


Author: troyer
Date: 2007-12-24 02:06:11 EST (Mon, 24 Dec 2007)
New Revision: 42274
URL: http://svn.boost.org/trac/boost/changeset/42274

Log:
removed warning
Text files modified:
   trunk/libs/serialization/test/test_complex.cpp | 8 ++++++--
   1 files changed, 6 insertions(+), 2 deletions(-)

Modified: trunk/libs/serialization/test/test_complex.cpp
==============================================================================
--- trunk/libs/serialization/test/test_complex.cpp (original)
+++ trunk/libs/serialization/test/test_complex.cpp 2007-12-24 02:06:11 EST (Mon, 24 Dec 2007)
@@ -30,8 +30,12 @@
     BOOST_REQUIRE(NULL != testfile);
 
     // test array of objects
- std::complex<float> a(std::rand(),std::rand());
- std::complex<double> b(std::rand(),std::rand());
+ std::complex<float> a(static_cast<float>(std::rand()),
+ static_cast<float>(std::rand()));
+
+ std::complex<double> b(static_cast<double>(std::rand()),
+ static_cast<double>(std::rand()));
+
     {
         test_ostream os(testfile, TEST_STREAM_FLAGS);
         test_oarchive oa(os);


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