diff options
| -rw-r--r-- | lodepng.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/lodepng.cpp b/lodepng.cpp index ad6ed24..37b0562 100644 --- a/lodepng.cpp +++ b/lodepng.cpp @@ -1171,7 +1171,7 @@ static unsigned inflateHuffmanBlock(ucvector* out, const unsigned char* in, size        code_d = huffmanDecodeSymbol(in, bp, &tree_d, inbitlength);        if(code_d > 29)        { -        if(code_ll == (unsigned)(-1)) /*huffmanDecodeSymbol returns (unsigned)(-1) in case of error*/ +        if(code_d == (unsigned)(-1)) /*huffmanDecodeSymbol returns (unsigned)(-1) in case of error*/          {            /*return error code 10 or 11 depending on the situation that happened in huffmanDecodeSymbol            (10=no endcode, 11=wrong jump outside of tree)*/ | 
