Merge "Fix misc-macro-parentheses warnings." am: 0c0f9228cf

am: 4ff367a593

* commit '4ff367a5934a906ba2008e530efca220deb96af7':
  Fix misc-macro-parentheses warnings.

Change-Id: I67d525e6f78b1d4e5854d40c30ad0bb96a3490dc
gugelfrei
Chih-Hung Hsieh 8 years ago committed by android-build-merger
commit 5dc0aa6e41

@ -27,7 +27,7 @@
#include <dirent.h>
#include <sys/wait.h>
#define CONSTRAIN(amount, low, high) (amount < low ? low : (amount > high ? high : amount))
#define CONSTRAIN(amount, low, high) ((amount) < (low) ? (low) : ((amount) > (high) ? (high) : (amount)))
using android::base::StringPrintf;

@ -63,8 +63,8 @@
#define MASS_STORAGE_FILE_PATH "/sys/class/android_usb/android0/f_mass_storage/lun/file"
#define ROUND_UP_POWER_OF_2(number, po2) (((!!(number & ((1U << po2) - 1))) << po2)\
+ (number & (~((1U << po2) - 1))))
#define ROUND_UP_POWER_OF_2(number, po2) (((!!((number) & ((1U << (po2)) - 1))) << (po2))\
+ ((number) & (~((1U << (po2)) - 1))))
using android::base::StringPrintf;

Loading…
Cancel
Save