aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLadislav Zezula <zezula@volny.cz>2024-08-18 16:39:51 +0200
committerGitHub <noreply@github.com>2024-08-18 16:39:51 +0200
commitcb80343e51f982d2f47ef83c56f02740b0763b29 (patch)
tree324e4aeafe917bd9cc281dfd074fd5b8568c6ae0
parent539a04e06578ce9b0cf005446eff66e18753076d (diff)
parent0b5d8c0989f67e7c863eb6491924e83927ec1107 (diff)
Merge pull request #355 from pionere/shortint
use int instead of short in FindRep
-rw-r--r--src/pklib/implode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pklib/implode.c b/src/pklib/implode.c
index 96baf98..bcff7a8 100644
--- a/src/pklib/implode.c
+++ b/src/pklib/implode.c
@@ -159,7 +159,7 @@ static unsigned int FindRep(TCmpStruct * pWork, unsigned char * input_data)
unsigned char * input_data_ptr;
unsigned short phash_offs_index; // Index to the table with PAIR_HASH positions
unsigned short min_phash_offs; // The lowest allowed hash offset
- unsigned short offs_in_rep; // Offset within found repetition
+ unsigned int offs_in_rep; // Offset within found repetition
unsigned int equal_byte_count; // Number of bytes that are equal to the previous occurence
unsigned int rep_length = 1; // Length of the found repetition
unsigned int rep_length2; // Secondary repetition