diff options
| author | 2022-09-06 15:08:38 +0000 | |
|---|---|---|
| committer | 2022-09-06 15:08:38 +0000 | |
| commit | 61ba79e876e448896b2f8a95d4cc1ebf79c78df3 (patch) | |
| tree | 5de4615788ae88ffd724988ed2b850dcd753fe78 | |
| parent | 887cda512303515a8ddadf10c9f45008a975bf16 (diff) | |
| parent | 5480b2129e55a9b00f789e9b1caa42656646634e (diff) | |
Merge "fix validateBufferDescriptorInfo error when usage bits were 32-bits"
| -rw-r--r-- | libs/ui/GraphicBuffer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ui/GraphicBuffer.cpp b/libs/ui/GraphicBuffer.cpp index 3732fee7f2..429760ffe0 100644 --- a/libs/ui/GraphicBuffer.cpp +++ b/libs/ui/GraphicBuffer.cpp @@ -465,7 +465,7 @@ status_t GraphicBuffer::unflatten(void const*& buffer, size_t& size, int const*& if (flattenWordCount == 13) { usage = (uint64_t(buf[12]) << 32) | uint32_t(buf[6]); } else { - usage = uint64_t(usage_deprecated); + usage = uint64_t(ANDROID_NATIVE_UNSIGNED_CAST(usage_deprecated)); } native_handle* h = native_handle_create(static_cast<int>(numFds), static_cast<int>(numInts)); |