|
Boost-Commit : |
From: technews_at_[hidden]
Date: 2008-01-02 21:50:58
Author: turkanis
Date: 2008-01-02 21:50:58 EST (Wed, 02 Jan 2008)
New Revision: 42426
URL: http://svn.boost.org/trac/boost/changeset/42426
Log:
cast off to unsigned int before writing to std::cout
Text files modified:
branches/iostreams_dev/libs/iostreams/test/stream_offset_64bit_test.cpp | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
Modified: branches/iostreams_dev/libs/iostreams/test/stream_offset_64bit_test.cpp
==============================================================================
--- branches/iostreams_dev/libs/iostreams/test/stream_offset_64bit_test.cpp (original)
+++ branches/iostreams_dev/libs/iostreams/test/stream_offset_64bit_test.cpp 2008-01-02 21:50:58 EST (Wed, 02 Jan 2008)
@@ -43,8 +43,9 @@
stringstream s;
s << "off != position_to_offset(offset_to_position(off)) "
"failed for (off >> 32) == "
- << (off >> 32) << " and (off & 0xFFFFFFFF) == "
- << (off & 0xFFFFFFFF);
+ << static_cast<unsigned int>(off >> 32)
+ << " and (off & 0xFFFFFFFF) == "
+ << static_cast<unsigned int>(off & 0xFFFFFFFF);
BOOST_REQUIRE_MESSAGE(0, s.str().c_str());
}
}
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