diff options
author | Chih-Hung Hsieh <chh@google.com> | 2016-08-27 01:47:34 +0200 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-08-27 01:47:34 +0200 |
commit | a50d7faff09d5d64251a80ff73684e58a0d9cae1 (patch) | |
tree | 2f333f44f924013b317931e32e52189c480a8976 /wear_touch.cpp | |
parent | Merge "Support use of custom fonts in miniui" into cw-f-dev (diff) | |
parent | Merge "Fix clang-tidy warnings in bootable/recovery." am: 89bf2bdc85 (diff) | |
download | android_bootable_recovery-a50d7faff09d5d64251a80ff73684e58a0d9cae1.tar android_bootable_recovery-a50d7faff09d5d64251a80ff73684e58a0d9cae1.tar.gz android_bootable_recovery-a50d7faff09d5d64251a80ff73684e58a0d9cae1.tar.bz2 android_bootable_recovery-a50d7faff09d5d64251a80ff73684e58a0d9cae1.tar.lz android_bootable_recovery-a50d7faff09d5d64251a80ff73684e58a0d9cae1.tar.xz android_bootable_recovery-a50d7faff09d5d64251a80ff73684e58a0d9cae1.tar.zst android_bootable_recovery-a50d7faff09d5d64251a80ff73684e58a0d9cae1.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); |