summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--bin/pngo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/pngo.c b/bin/pngo.c
index 878b55a0..6dd88c87 100644
--- a/bin/pngo.c
+++ b/bin/pngo.c
@@ -309,7 +309,7 @@ static void filterData(struct Header header, const struct Scanline *lines) {
     for (uint32_t y = header.height - 1; y < header.height; --y) {
         // TODO: Filter type heuristic.
         *lines[y].type = FILT_PAETH;
-        for (uint32_t i = (bpp * header.width) - 1; i < bpp * header.width; ++i) {
+        for (uint32_t i = (bpp * header.width) - 1; i < bpp * header.width; --i) {
             lines[y].data[i] = filt(*lines[y].type, filterBytes(lines, bpp, y, i));
         }
     }
2020-10-22Import LibreSSL 3.2.2June McEnroe 2020-09-29Import LibreSSL 3.2.1June McEnroe 2020-09-29import: Add m4/ax_add_fortify_source.m4June McEnroe 2020-08-05build: Add README.7 to EXTRA_DIST 3.2.0June McEnroe 2020-08-03doc: Indicate that only OpenSSL 1.1.1b and newer workJune McEnroe