summaryrefslogtreecommitdiff
path: root/tools/lzcomp.c
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2017-06-24 21:03:09 -0400
committerGitHub <noreply@github.com>2017-06-24 21:03:09 -0400
commit175cc6536a0667ac1913d03f1041f924a7368dd1 (patch)
tree2bef394dc4797c3db8442114df6f5622e4da9712 /tools/lzcomp.c
parentdbaec2053429e04f21613c3c0964e213008bfdb9 (diff)
parent121e9317507abb5ae08c144c0cd2b968d9882449 (diff)
Merge pull request #365 from Ben10do/tools-makefile-integration
Improvements to the tools and their Makefile
Diffstat (limited to 'tools/lzcomp.c')
-rw-r--r--tools/lzcomp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/lzcomp.c b/tools/lzcomp.c
index 1b7b32a5d..c3fae1001 100644
--- a/tools/lzcomp.c
+++ b/tools/lzcomp.c
@@ -177,11 +177,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) {