Skip to content

Commit 4fd5fe0

Browse files
Treehugger RobotGerrit Code Review
authored andcommitted
Merge "Fix invalid shift of 32-bit value." into main
2 parents 9393e39 + 3c837e2 commit 4fd5fe0

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)