diff options
| author | 2016-05-19 23:25:09 +0000 | |
|---|---|---|
| committer | 2016-05-19 23:25:09 +0000 | |
| commit | 6f4b5661696355d230c515a45aca2dddd8fe99b1 (patch) | |
| tree | d6704017c7c47084d0992f5209b1cea3a0c6411f /tools/aapt/StringPool.cpp | |
| parent | fe91d2a83daee3604a49c1bae0744cdde6d14b46 (diff) | |
| parent | e819d01e3e120844e95cc4c534382d20d2beb623 (diff) | |
Merge "Fix misc-macro-parentheses warnings in aapt and androidfw."
Diffstat (limited to 'tools/aapt/StringPool.cpp')
| -rw-r--r-- | tools/aapt/StringPool.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/aapt/StringPool.cpp b/tools/aapt/StringPool.cpp index 9908c44c6d1f..37a493329ade 100644 --- a/tools/aapt/StringPool.cpp +++ b/tools/aapt/StringPool.cpp @@ -390,12 +390,12 @@ sp<AaptFile> StringPool::createStringBlock() #define ENCODE_LENGTH(str, chrsz, strSize) \ { \ - size_t maxMask = 1 << ((chrsz*8)-1); \ + size_t maxMask = 1 << (((chrsz)*8)-1); \ size_t maxSize = maxMask-1; \ - if (strSize > maxSize) { \ - *str++ = maxMask | ((strSize>>(chrsz*8))&maxSize); \ + if ((strSize) > maxSize) { \ + *(str)++ = maxMask | (((strSize)>>((chrsz)*8))&maxSize); \ } \ - *str++ = strSize; \ + *(str)++ = strSize; \ } status_t StringPool::writeStringBlock(const sp<AaptFile>& pool) |