diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2016-08-27 01:29:23 +0200 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2016-08-27 01:29:23 +0200 |
commit | 89bf2bdc85bd576bfd81b438bb8d39b042d91779 (patch) | |
tree | b2d9b2cab10667fdd08f2de84db84dc86845477a /wear_touch.cpp | |
parent | Merge "Free mmaped area if keys fail to load" (diff) | |
parent | Fix clang-tidy warnings in bootable/recovery. (diff) | |
download | android_bootable_recovery-89bf2bdc85bd576bfd81b438bb8d39b042d91779.tar android_bootable_recovery-89bf2bdc85bd576bfd81b438bb8d39b042d91779.tar.gz android_bootable_recovery-89bf2bdc85bd576bfd81b438bb8d39b042d91779.tar.bz2 android_bootable_recovery-89bf2bdc85bd576bfd81b438bb8d39b042d91779.tar.lz android_bootable_recovery-89bf2bdc85bd576bfd81b438bb8d39b042d91779.tar.xz android_bootable_recovery-89bf2bdc85bd576bfd81b438bb8d39b042d91779.tar.zst android_bootable_recovery-89bf2bdc85bd576bfd81b438bb8d39b042d91779.zip |
Diffstat (limited to 'wear_touch.cpp')
-rw-r--r-- | wear_touch.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wear_touch.cpp b/wear_touch.cpp index f22d40b88..51a1d31b2 100644 --- a/wear_touch.cpp +++ b/wear_touch.cpp @@ -122,7 +122,7 @@ void* WearSwipeDetector::touch_thread(void* cookie) { return NULL; } -#define test_bit(bit, array) (array[bit/8] & (1<<(bit%8))) +#define test_bit(bit, array) ((array)[(bit)/8] & (1<<((bit)%8))) int WearSwipeDetector::openDevice(const char *device) { int fd = open(device, O_RDONLY); |