From e971b9bcafa2d73d310a94ee1793163d6e1de14f Mon Sep 17 00:00:00 2001 From: Adrian Danis Date: Thu, 3 Sep 2015 14:33:55 +1000 Subject: [PATCH] libsel4: Make FORCE_LONG_ENUM actually force a long instead of an int --- libsel4/include/sel4/macros.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libsel4/include/sel4/macros.h b/libsel4/include/sel4/macros.h index ee2e0996c..55ac37d1b 100644 --- a/libsel4/include/sel4/macros.h +++ b/libsel4/include/sel4/macros.h @@ -16,10 +16,10 @@ /* * Some compilers attempt to pack enums into the smallest possible type. * For ABI compatability with the kernel, we need to ensure they remain - * the same size as an 'int'. + * the same size as a 'long'. */ #define SEL4_FORCE_LONG_ENUM(type) \ - _enum_pad_ ## type = (1U << ((sizeof(int)*8) - 1)) - 1 + _enum_pad_ ## type = (1ULL << ((sizeof(long)*8) - 1)) - 1 #ifndef CONST #define CONST __attribute__((__const__))