Boost logo

Boost-Commit :

From: technews_at_[hidden]
Date: 2008-01-02 17:32:47


Author: turkanis
Date: 2008-01-02 17:32:46 EST (Wed, 02 Jan 2008)
New Revision: 42423
URL: http://svn.boost.org/trac/boost/changeset/42423

Log:
replaced '<< off' with '<< (off >> 32)' and '<< (off & 0xFFFFFFFF)' for platforms with no ostream << int64 overload
Text files modified:
   branches/iostreams_dev/libs/iostreams/test/stream_offset_64bit_test.cpp | 4 +++-
   1 files changed, 3 insertions(+), 1 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 17:32:46 EST (Wed, 02 Jan 2008)
@@ -42,7 +42,9 @@
         if (off != position_to_offset(offset_to_position(off))) {
             stringstream s;
             s << "off != position_to_offset(offset_to_position(off)) "
- "failed for off == " << off;
+ "failed for (off >> 32) == "
+ << (off >> 32) << " and (off & 0xFFFFFFFF) == "
+ << (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