diff --git a/src/salinflt.cpp b/src/salinflt.cpp index 4a363cac..f214c4e0 100644 --- a/src/salinflt.cpp +++ b/src/salinflt.cpp @@ -1,11 +1,12 @@ // SPDX-FileCopyrightText: 2023 Open Salamander Authors // SPDX-License-Identifier: GPL-2.0-or-later +// CommentsTranslationProject: TRANSLATED #include "precomp.h" #include "salinflt.h" -/* inflate.c -- modified by Lucas Cerman & Petr Solin +/* inflate.c -- modified by Lucas Čerman & Petr Solin version 1.1, Feb 2007 based on file inflate.c distributed with infozip, @@ -220,8 +221,8 @@ uch NextByte(CDecompressionObject* decompress) else { if (decompress->DataPtr == decompress->DataEnd) - decompress->DataPtr++; // chybovy stav je az decompress->DataPtr > decompress->DataEnd - return 0 /* chyba */; + decompress->DataPtr++; // the error state occurs only when decompress->DataPtr > decompress->DataEnd + return 0 /* error */; } } #endif @@ -500,7 +501,7 @@ int inflate_stored(CDecompressionObject* decompress) bytesLeft -= inBytes; decompress->WinPos += inBytes; outBytes -= inBytes; - if (!bytesLeft && outBytes) // je potreba delsi vstup, ten ale nemame (vse je v decompress->Data) + if (!bytesLeft && outBytes) // longer input is needed, but we do not have it (everything is in decompress->Data) { TRACE_I("inflate_stored: input error"); return 4; @@ -1090,7 +1091,7 @@ int huft_free(CDecompressionObject* decompress, struct huft* t) // ************************************************************************************* // -// metody pro Salamandera: +// methods for Salamander: // // ************************************************************************************* @@ -1112,5 +1113,5 @@ int CDecompressionObject::Flush(unsigned bytes) } } Crc = UpdateCrc32(SlideWin, bytes, Crc); - return 0; // uspech + return 0; // success }