aboutsummaryrefslogtreecommitdiff
path: root/src/myriad.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2010-05-26 19:31:52 +0000
committerMike Buland <eichlan@xagasoft.com>2010-05-26 19:31:52 +0000
commit5b68b0c6abd98fc99acd57a2c5c691468e7dcb97 (patch)
tree614376739d56bdf02e5e64caa431641c112cf17f /src/myriad.cpp
parent9052520ba21c824d526f67518c66a1c32c6a2f24 (diff)
downloadlibbu++-5b68b0c6abd98fc99acd57a2c5c691468e7dcb97.tar.gz
libbu++-5b68b0c6abd98fc99acd57a2c5c691468e7dcb97.tar.bz2
libbu++-5b68b0c6abd98fc99acd57a2c5c691468e7dcb97.tar.xz
libbu++-5b68b0c6abd98fc99acd57a2c5c691468e7dcb97.zip
Oooh, another minor myriad fix, it's getting solid now. :)
Diffstat (limited to 'src/myriad.cpp')
-rw-r--r--src/myriad.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/myriad.cpp b/src/myriad.cpp
index 9d7a849..748350c 100644
--- a/src/myriad.cpp
+++ b/src/myriad.cpp
@@ -555,6 +555,7 @@ int Bu::Myriad::streamAddBlock( Stream *pStream )
555 int iBlock = findEmptyBlock(); 555 int iBlock = findEmptyBlock();
556 pStream->aBlocks.append( iBlock ); 556 pStream->aBlocks.append( iBlock );
557 bsBlockUsed.setBit( iBlock ); 557 bsBlockUsed.setBit( iBlock );
558 bHeaderChanged = true;
558 iUsed++; 559 iUsed++;
559 return iBlock; 560 return iBlock;
560} 561}
@@ -569,7 +570,7 @@ void Bu::Myriad::setStreamSize( Stream *pStream, long iSize )
569 { 570 {
570 // Shrink 571 // Shrink
571 for( int iNewSize = pStream->aBlocks.getSize()*iBlockSize; 572 for( int iNewSize = pStream->aBlocks.getSize()*iBlockSize;
572 iNewSize-64 > iSize; iNewSize -= iBlockSize ) 573 iNewSize-iBlockSize > iSize; iNewSize -= iBlockSize )
573 { 574 {
574 if( bsBlockUsed.getBit( pStream->aBlocks.last() ) ) 575 if( bsBlockUsed.getBit( pStream->aBlocks.last() ) )
575 iUsed--; 576 iUsed--;