author | ecalot
<ecalot> 2005-03-10 00:09:02 UTC |
committer | ecalot
<ecalot> 2005-03-10 00:09:02 UTC |
parent | ec3020a8e1fe864e6fb7bf8bd1d20cd27f666ebf |
stuff/contest/lzg/uncompress.c | +4 | -1 |
diff --git a/stuff/contest/lzg/uncompress.c b/stuff/contest/lzg/uncompress.c index 74ff12b..c89f3b8 100644 --- a/stuff/contest/lzg/uncompress.c +++ b/stuff/contest/lzg/uncompress.c @@ -65,7 +65,10 @@ void expandLzg(const unsigned char* input, int inputSize, /* * delta is ((location-cursor)%LZG_WINDOW_SIZE) - * this is the correction factor for the complex algorithm + * this is the offset where the bytes will be looked for + * in the simple algorithm it is allways negative + * in bigger images it can be positive + * * this value is inside the range -1023 to 1023. * if location>cursor the result is positive * if location<cursor the result is negative