]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Fix typos.
authorMika Lindqvist <postmaster@raasu.org>
Mon, 13 Mar 2017 22:10:43 +0000 (00:10 +0200)
committerHans Kristian Rosbach <hk-git@circlestorm.org>
Fri, 24 Mar 2017 20:55:38 +0000 (21:55 +0100)
deflate_medium.c
match.c

index 046449fb9b2159ae1221a75fc6570016a169573d..db5d09c6f735862d3c1e895c77f8eac0ffcac50d 100644 (file)
@@ -31,7 +31,7 @@ static int tr_tally_lit(deflate_state *s, int c) {
 static int emit_match(deflate_state *s, struct match match) {
     int flush = 0;
 
-    /* matches that are not long enough we need to emit as litterals */
+    /* matches that are not long enough we need to emit as literals */
     if (match.match_length < MIN_MATCH) {
         while (match.match_length) {
             flush += tr_tally_lit(s, s->window[match.strstart]);
@@ -54,7 +54,7 @@ static void insert_match(deflate_state *s, struct match match) {
     if (unlikely(s->lookahead <= match.match_length + MIN_MATCH))
         return;
 
-    /* matches that are not long enough we need to emit as litterals */
+    /* matches that are not long enough we need to emit as literals */
     if (match.match_length < MIN_MATCH) {
 #ifdef NOT_TWEAK_COMPILER
         while (match.match_length) {
diff --git a/match.c b/match.c
index 98310a329b5af6eebe6a15c332910142d5be4984..87e3d9655d5f47f8f4c3432d9fb520a76e2ec45a 100644 (file)
--- a/match.c
+++ b/match.c
@@ -279,7 +279,7 @@ ZLIB_INTERNAL unsigned longest_match(deflate_state *const s, IPos cur_match) {
 /* longest_match() with minor change to improve performance (in terms of
  * execution time).
  *
- * The pristine longest_match() function is sketched bellow (strip the
+ * The pristine longest_match() function is sketched below (strip the
  * then-clause of the "#ifdef UNALIGNED_OK"-directive)
  *
  * ------------------------------------------------------------