Fix windows compilation.
This commit is contained in:
parent
b45385e8c7
commit
b17ba8b3a7
23 changed files with 85 additions and 53 deletions
|
@ -48,7 +48,7 @@ void Lz77Encoder::populateSearchBuffer(const Hit& hit)
|
|||
int difference = int(length) - distance;
|
||||
if (difference > 0)
|
||||
{
|
||||
for(unsigned idx=0; idx<difference; idx++)
|
||||
for(unsigned idx=0; idx<unsigned(difference); idx++)
|
||||
{
|
||||
mSearchBuffer.addItem(mLookaheadBuffer.getItem(idx));
|
||||
}
|
||||
|
@ -64,7 +64,7 @@ unsigned char Lz77Encoder::getSearchBufferItem(unsigned index) const
|
|||
unsigned Lz77Encoder::lookAheadForMatchingChars(unsigned distance)
|
||||
{
|
||||
unsigned length{0};
|
||||
for(unsigned idx=0; idx<mMaxLookAheadBufferIndex + 1; idx++)
|
||||
for(unsigned idx=0; idx<unsigned(mMaxLookAheadBufferIndex + 1); idx++)
|
||||
{
|
||||
int search_offset = int(distance-1) - idx;
|
||||
unsigned char search_char{0};
|
||||
|
@ -112,7 +112,7 @@ bool Lz77Encoder::lookAheadSourceEmpty() const
|
|||
return true;
|
||||
}
|
||||
|
||||
if (mMaxLookAheadBufferIndex < mLookAheadBufferSize - 1)
|
||||
if (mMaxLookAheadBufferIndex < int(mLookAheadBufferSize) - 1)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue