|
Boost-Commit : |
From: technews_at_[hidden]
Date: 2007-12-21 23:29:21
Author: turkanis
Date: 2007-12-21 23:29:21 EST (Fri, 21 Dec 2007)
New Revision: 42239
URL: http://svn.boost.org/trac/boost/changeset/42239
Log:
Changed types involved in file size calculation. Adresses #586 (ported from sandbox-branches/birbacher/fix_iostreams)
Text files modified:
branches/iostreams_dev/libs/iostreams/src/file_descriptor.cpp | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
Modified: branches/iostreams_dev/libs/iostreams/src/file_descriptor.cpp
==============================================================================
--- branches/iostreams_dev/libs/iostreams/src/file_descriptor.cpp (original)
+++ branches/iostreams_dev/libs/iostreams/src/file_descriptor.cpp 2007-12-21 23:29:21 EST (Fri, 21 Dec 2007)
@@ -199,7 +199,9 @@
if (::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