Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3c837e24 authored by Dan Albert's avatar Dan Albert
Browse files

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
parent e2f79abe
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -326,7 +326,7 @@ enum AHardwareBuffer_UsageFlags {
     * COMPOSER_OVERLAY, the system will try to prioritize the buffer receiving
     * an overlay plane & avoid caching it in intermediate composition buffers.
     */
    AHARDWAREBUFFER_USAGE_FRONT_BUFFER = 1UL << 32,
    AHARDWAREBUFFER_USAGE_FRONT_BUFFER = 1ULL << 32,

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