Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nemequ/liblzf.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lzf_c_best.c')
-rw-r--r--lzf_c_best.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lzf_c_best.c b/lzf_c_best.c
index fe523d2..2474f8f 100644
--- a/lzf_c_best.c
+++ b/lzf_c_best.c
@@ -72,7 +72,7 @@ lzf_compress_best (const void *const in_data, unsigned int in_len,
u8 *out_end = op + out_len;
const u8 *first [1 << (6+8)]; /* most recent occurance of a match */
- u16 prev [MAX_OFF]; /* how many bytes to go backwards for te next match */
+ u16 prev [MAX_OFF]; /* how many bytes to go backwards for the next match */
int lit;
@@ -116,7 +116,7 @@ lzf_compress_best (const void *const in_data, unsigned int in_len,
}
diff = prev [((unsigned int)p) & (MAX_OFF - 1)];
- p = diff ? p - diff : (u8 *)diff;
+ p = diff ? p - diff : 0;
}
if (best_l)