Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f536e7ba authored by Chih-Hung Hsieh's avatar Chih-Hung Hsieh
Browse files

Fix misc-macro-parentheses warnings.

Add parentheses around macro arguments used beside binary operators.

Bug: 28705665
Change-Id: I8594b9463e2389a46d6e0235757b93de065cd007
parent 7ff7c2d8
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -66,10 +66,10 @@ void to_565_raw_dither(int width)
        write(1, &out, 2);

#define apply_error(ch) {                                                \
            next_error[(i-1)*3+ch] += e * 3 / 16;                       \
            next_error[(i)*3+ch] += e * 5 / 16;                         \
            next_error[(i+1)*3+ch] += e * 1 / 16;                       \
            error[(i+1)*3+ch] += e - ((e*1/16) + (e*3/16) + (e*5/16));  \
            next_error[(i-1)*3+(ch)] += e * 3 / 16;                      \
            next_error[(i)*3+(ch)] += e * 5 / 16;                        \
            next_error[(i+1)*3+(ch)] += e * 1 / 16;                      \
            error[(i+1)*3+(ch)] += e - ((e*1/16) + (e*3/16) + (e*5/16)); \
        }

        e = r - from565_r(out);