[PATCH] D18521: Add parenthesis to silence warning
Nirav Dave via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 28 12:34:34 PDT 2016
niravd created this revision.
niravd added a reviewer: dexonsmith.
niravd added a subscriber: llvm-commits.
Add parenthesis to BitstreamReader.h to silence compilation warning
http://reviews.llvm.org/D18521
Files:
include/llvm/Bitcode/BitstreamReader.h
Index: include/llvm/Bitcode/BitstreamReader.h
===================================================================
--- include/llvm/Bitcode/BitstreamReader.h
+++ include/llvm/Bitcode/BitstreamReader.h
@@ -367,7 +367,7 @@
// Round to word boundary.
if (Limit & (sizeof(word_t) - 1))
- Limit += sizeof(word_t) - Limit & (sizeof(word_t) - 1);
+ Limit += sizeof(word_t) - (Limit & (sizeof(word_t) - 1));
// Only change size if the new one is lower.
if (!Size || Size > Limit)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18521.51823.patch
Type: text/x-patch
Size: 505 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160328/6e0f8226/attachment.bin>
More information about the llvm-commits
mailing list