Boost logo

Boost-Commit :

From: Frank.Birbacher_at_[hidden]
Date: 2007-08-23 21:29:25


Author: birbacher
Date: 2007-08-23 21:29:25 EDT (Thu, 23 Aug 2007)
New Revision: 38880
URL: http://svn.boost.org/trac/boost/changeset/38880

Log:
Changed types involved in file size calculation. Adresses #586
Text files modified:
   sandbox-branches/birbacher/fix_iostreams/libs/iostreams/src/file_descriptor.cpp | 3 ++-
   1 files changed, 2 insertions(+), 1 deletions(-)

Modified: sandbox-branches/birbacher/fix_iostreams/libs/iostreams/src/file_descriptor.cpp
==============================================================================
--- sandbox-branches/birbacher/fix_iostreams/libs/iostreams/src/file_descriptor.cpp (original)
+++ sandbox-branches/birbacher/fix_iostreams/libs/iostreams/src/file_descriptor.cpp 2007-08-23 21:29:25 EDT (Thu, 23 Aug 2007)
@@ -198,7 +198,8 @@
                 && ::GetLastError() != NO_ERROR) {
             throw detail::bad_seek();
         } else {
- return offset_to_position((lDistanceToMoveHigh << 32) + dwResultLow);
+ return offset_to_position(
+ (stream_offset(lDistanceToMoveHigh) << 32) + dwResultLow);
         }
     }
 #endif // #ifdef BOOST_IOSTREAMS_WINDOWS


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