summaryrefslogtreecommitdiff
path: root/tools/lz/spcomp.c
diff options
context:
space:
mode:
authorentrpntr <entrpntr@gmail.com>2020-05-28 06:44:10 -0400
committerentrpntr <entrpntr@gmail.com>2020-06-14 15:07:27 -0400
commit4ac8bcc29a4ad5bb908b692baa040e7c7eb21249 (patch)
treed4e14bd6d9c367a1d5993dc9729451a3770f9870 /tools/lz/spcomp.c
parent4517c08edaa6783fac0fb15dd98b476e066134f8 (diff)
Checkpoint where things mostly work.
Diffstat (limited to 'tools/lz/spcomp.c')
-rw-r--r--tools/lz/spcomp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/lz/spcomp.c b/tools/lz/spcomp.c
index b6184836..ab33dbbc 100644
--- a/tools/lz/spcomp.c
+++ b/tools/lz/spcomp.c
@@ -62,11 +62,11 @@ struct command find_best_copy (const unsigned char * data, unsigned short positi
struct command simple = {.command = 7};
struct command flipped = simple, backwards = simple;
short count, offset;
- if ((count = scan_forwards(data + position, length - position, data, position, &offset)))
+ if (count = scan_forwards(data + position, length - position, data, position, &offset))
simple = (struct command) {.command = 4, .count = count, .value = offset};
- if ((count = scan_forwards(data + position, length - position, bitflipped, position, &offset)))
+ if (count = scan_forwards(data + position, length - position, bitflipped, position, &offset))
flipped = (struct command) {.command = 5, .count = count, .value = offset};
- if ((count = scan_backwards(data, length - position, position, &offset)))
+ if (count = scan_backwards(data, length - position, position, &offset))
backwards = (struct command) {.command = 6, .count = count, .value = offset};
struct command command;
switch (flags / 24) {