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

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

Fix misc-macro-parentheses warnings.

Bug: 28705665
Change-Id: If9b2ac6aa69a75428f51fae4cfb5b97cc452cf45
parent 0603c5df
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -25,7 +25,7 @@ namespace img_utils {
const uint8_t ZERO_WORD[] = {0, 0, 0, 0};

#define BAIL_ON_FAIL(x, flag) \
    if ((flag = (x)) != OK) return flag;
    if (((flag) = (x)) != OK) return flag;

#define BYTES_TILL_WORD(index) \
    ((TIFF_WORD_SIZE - ((index) % TIFF_WORD_SIZE)) % TIFF_WORD_SIZE)
+1 −1
Original line number Diff line number Diff line
@@ -40,7 +40,7 @@ bool Orderable::operator op (const Orderable& orderable) const { \
}

#define ARRAY_SIZE(array) \
    (sizeof(array) / sizeof(array[0]))
    (sizeof(array) / sizeof((array)[0]))

KeyedVector<uint16_t, const TagDefinition_t*> TiffWriter::sTagMaps[] = {
    buildTagMap(TIFF_EP_TAG_DEFINITIONS, ARRAY_SIZE(TIFF_EP_TAG_DEFINITIONS)),