Ignore:
Timestamp:
28/04/2007 18:13:34 (5 years ago)
Author:
chris
Message:

Fix inability to handle streams over 2GB properly. (refs #3)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/chris/merge/lib/common/ReadGatherStream.cpp

    r217 r1586  
    6060// Function 
    6161//              Name:    ReadGatherStream::AddComponent(IOStream *) 
    62 //              Purpose: Add a component to this stream, returning the index of this component 
    63 //                               in the internal list. Use this with AddBlock() 
     62//              Purpose: Add a component to this stream, returning the index 
     63//                       of this component in the internal list. Use this 
     64//                       with AddBlock() 
    6465//              Created: 10/12/03 
    6566// 
     
    146147                { 
    147148                        // Read! 
    148                         int s = mBlocks[mCurrentBlock].mLength - mPositionInCurrentBlock; 
     149                        pos_type s = mBlocks[mCurrentBlock].mLength - mPositionInCurrentBlock; 
    149150                        if(s > bytesToRead) s = bytesToRead; 
    150151                         
    151                         int r = mComponents[mBlocks[mCurrentBlock].mComponent]->Read(buffer, s, Timeout); 
     152                        pos_type r = mComponents[mBlocks[mCurrentBlock].mComponent]->Read(buffer, s, Timeout); 
    152153                         
    153154                        // update variables 
Note: See TracChangeset for help on using the changeset viewer.