Skip to content

Commit 3c837e2

Browse files
author
Dan Albert
committed
Fix invalid shift of 32-bit value.
For 32-bit builds (still common for apps), long is only 32-bits, and this is a 32-bit shift. A future version of Clang treats this as an error. Test: treehugger Change-Id: Ie2301c21afe48cbae63e4aca0f3a722ca7115dcc
1 parent e2f79ab commit 3c837e2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libs/nativewindow/include/android/hardware_buffer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ enum AHardwareBuffer_UsageFlags {
326326
* COMPOSER_OVERLAY, the system will try to prioritize the buffer receiving
327327
* an overlay plane & avoid caching it in intermediate composition buffers.
328328
*/
329-
AHARDWAREBUFFER_USAGE_FRONT_BUFFER = 1UL << 32,
329+
AHARDWAREBUFFER_USAGE_FRONT_BUFFER = 1ULL << 32,
330330

331331
AHARDWAREBUFFER_USAGE_VENDOR_0 = 1ULL << 28,
332332
AHARDWAREBUFFER_USAGE_VENDOR_1 = 1ULL << 29,

0 commit comments

Comments
 (0)