summaryrefslogtreecommitdiff
path: root/tools/lz/packing.c
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-05-24 12:29:05 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2020-05-24 12:29:05 -0400
commit159cef004f86d134a551a3abfba2dee9020b16d0 (patch)
treeb80cf8f9cf6cbafad20cab82e54a32590d3d8eea /tools/lz/packing.c
parentc1c671d84b8b36e421f73483977ee75f7b1f46ff (diff)
Update lzcomp
Diffstat (limited to 'tools/lz/packing.c')
-rw-r--r--tools/lz/packing.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/lz/packing.c b/tools/lz/packing.c
index b3e646347..0cb9fae90 100644
--- a/tools/lz/packing.c
+++ b/tools/lz/packing.c
@@ -17,7 +17,7 @@ void optimize (struct command * commands, unsigned short count) {
next -> command = 7;
continue;
}
- if (next -> command == commands -> command) {
+ if (next -> command == commands -> command)
switch (commands -> command) {
case 0:
if ((commands -> value + commands -> count) != next -> value) break;
@@ -40,9 +40,7 @@ void optimize (struct command * commands, unsigned short count) {
}
next -> count = (commands -> count + next -> count) - MAX_COMMAND_COUNT;
commands -> count = MAX_COMMAND_COUNT;
- break;
}
- }
commands = next;
}
}