commit | 8db21069326575ae82c9a94f99780393d07b5a2f | [log] [tgz] |
---|---|---|
author | Pirama Arumuga Nainar <pirama@google.com> | Fri Jan 28 10:15:12 2022 -0800 |
committer | Pirama Arumuga Nainar <pirama@google.com> | Wed Feb 02 21:15:01 2022 -0800 |
tree | 85af571222fb02d4063665bd816382acb67b6568 | |
parent | 35c5124850bba0a97aac80e4465dbc243827ffb7 [diff] [blame] |
Fix -Wbitwise-instead-of-logical Bug: http://b/215753485 This warning is introduced in clang-r445002. In code where the bitwise operation was used to avoid short-ciruit evaluation, make that explicit by introducing temporary variables. Test: build with clang-r445002. Change-Id: Ia7ccf1d48922d926313f691888d26c3e314c1056
diff --git a/services/camera/libcameraservice/device3/Camera3OutputStream.cpp b/services/camera/libcameraservice/device3/Camera3OutputStream.cpp index 03b77fc..9f93e50 100644 --- a/services/camera/libcameraservice/device3/Camera3OutputStream.cpp +++ b/services/camera/libcameraservice/device3/Camera3OutputStream.cpp
@@ -545,7 +545,7 @@ mHandoutTotalBufferCount = 0; mFrameCount = 0; mLastTimestamp = 0; - mUseMonoTimestamp = (isConsumedByHWComposer() | isVideoStream()); + mUseMonoTimestamp = (isConsumedByHWComposer() || isVideoStream()); res = native_window_set_buffer_count(mConsumer.get(), mTotalBufferCount);