fix constant comparison (#162)

* fix constant comparison

* .
This commit is contained in:
croghostrider
2021-12-29 17:20:46 +01:00
committed by GitHub
parent 12d0ea1ad8
commit bf70e162f8
5 changed files with 9 additions and 11 deletions

View File

@@ -82,7 +82,7 @@ int FdskCalculator::toBase32(uint8_t* in, long length, uint8_t*& out, bool usePa
int next = 1;
int bitsLeft = 8;
while (count < bufSize && (bitsLeft > 0 || next < length))
while (bitsLeft > 0 || next < length)
{
if (bitsLeft < 5)
{

View File

@@ -82,7 +82,7 @@ int FdskCalculator::toBase32(uint8_t* in, long length, uint8_t*& out, bool usePa
int next = 1;
int bitsLeft = 8;
while (count < bufSize && (bitsLeft > 0 || next < length))
while (bitsLeft > 0 || next < length)
{
if (bitsLeft < 5)
{