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