From 3350b17511abcac185293cf9e4cc1b10c26cfd0e Mon Sep 17 00:00:00 2001 From: Gabriele Gristina Date: Sat, 29 Jun 2019 17:52:56 +0200 Subject: [PATCH] Fix shift in enum vendor_id --- include/types.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/include/types.h b/include/types.h index b665d91e9..f7b254bfa 100644 --- a/include/types.h +++ b/include/types.h @@ -160,15 +160,15 @@ typedef enum amplifier_count typedef enum vendor_id { - VENDOR_ID_AMD = (1 << 0), - VENDOR_ID_APPLE = (1 << 1), - VENDOR_ID_INTEL_BEIGNET = (1 << 2), - VENDOR_ID_INTEL_SDK = (1 << 3), - VENDOR_ID_MESA = (1 << 4), - VENDOR_ID_NV = (1 << 5), - VENDOR_ID_POCL = (1 << 6), - VENDOR_ID_AMD_USE_INTEL = (1 << 7), - VENDOR_ID_GENERIC = (1 << 31) + VENDOR_ID_AMD = (1U << 0), + VENDOR_ID_APPLE = (1U << 1), + VENDOR_ID_INTEL_BEIGNET = (1U << 2), + VENDOR_ID_INTEL_SDK = (1U << 3), + VENDOR_ID_MESA = (1U << 4), + VENDOR_ID_NV = (1U << 5), + VENDOR_ID_POCL = (1U << 6), + VENDOR_ID_AMD_USE_INTEL = (1U << 7), + VENDOR_ID_GENERIC = (1U << 31) } vendor_id_t;