summaryrefslogtreecommitdiff
path: root/lib/common/PartialReadStream.cpp
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2007-04-28 17:13:34 +0000
committerChris Wilson <chris+github@qwirx.com>2007-04-28 17:13:34 +0000
commitf71cab7197bc0582dcfb3a4320520d8fbe54718b (patch)
tree7fc69213b0805086dbb50f7d1f6ae474120a51ab /lib/common/PartialReadStream.cpp
parent278b937f6dffbc6b0e5a4a53e0310358acdf1dd5 (diff)
Fix inability to handle streams over 2GB properly. (refs #3)
Diffstat (limited to 'lib/common/PartialReadStream.cpp')
-rw-r--r--lib/common/PartialReadStream.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/common/PartialReadStream.cpp b/lib/common/PartialReadStream.cpp
index 0b5c4cf6..76096738 100644
--- a/lib/common/PartialReadStream.cpp
+++ b/lib/common/PartialReadStream.cpp
@@ -16,13 +16,15 @@
// --------------------------------------------------------------------------
//
// Function
-// Name: PartialReadStream::PartialReadStream(IOStream &, int)
-// Purpose: Constructor, taking another stream and the number of bytes
-// to be read from it.
+// Name: PartialReadStream::PartialReadStream(IOStream &,
+// pos_type)
+// Purpose: Constructor, taking another stream and the number of
+// bytes to be read from it.
// Created: 2003/08/26
//
// --------------------------------------------------------------------------
-PartialReadStream::PartialReadStream(IOStream &rSource, int BytesToRead)
+PartialReadStream::PartialReadStream(IOStream &rSource,
+ pos_type BytesToRead)
: mrSource(rSource),
mBytesLeft(BytesToRead)
{