graphics common: fix AIDL BufferUsage calculation

This was hitting integer sanitization, which we are trying to turn on:
Before:
    VENDOR_MASK_HI = -65536L,
After:
    VENDOR_MASK_HI = -281474976710656L,

Bug: 148149098
Test: manually check output (see above).
Change-Id: I1e2d7c0225aec8bf67375eb6b0cdc919b4ece847
This commit is contained in:
Steven Moreland
2020-03-20 15:53:29 -07:00
parent be4c3a1a03
commit d9eb0d743c

View File

@@ -110,5 +110,5 @@ enum BufferUsage {
/** bits 32-47 must be zero and are reserved for future versions */
/** bits 48-63 are reserved for vendor extensions */
VENDOR_MASK_HI = 0xffff << 48,
VENDOR_MASK_HI = (1L * 0xffff) << 48,
}