From: Oliver Kurth Date: Wed, 16 Jan 2019 22:53:04 +0000 (-0800) Subject: Common header file change not applicable to open-vm-tools. X-Git-Tag: stable-11.0.0~258 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01d4d19cc0f638ef119fb0b23801c66acd634920;p=thirdparty%2Fopen-vm-tools.git Common header file change not applicable to open-vm-tools. --- diff --git a/open-vm-tools/lib/include/vm_basic_asm.h b/open-vm-tools/lib/include/vm_basic_asm.h index d15048dcf..8df7ff869 100644 --- a/open-vm-tools/lib/include/vm_basic_asm.h +++ b/open-vm-tools/lib/include/vm_basic_asm.h @@ -390,10 +390,10 @@ lssbPtr_0(const uintptr_t value) #endif } -static INLINE int +static INLINE unsigned lssbPtr(const uintptr_t value) { - return lssbPtr_0(value) + 1; + return (unsigned)lssbPtr_0(value) + 1; } static INLINE int @@ -406,34 +406,34 @@ mssbPtr_0(const uintptr_t value) #endif } -static INLINE int +static INLINE unsigned mssbPtr(const uintptr_t value) { - return mssbPtr_0(value) + 1; + return (unsigned)mssbPtr_0(value) + 1; } -static INLINE int +static INLINE unsigned lssb32(const uint32 value) { - return lssb32_0(value) + 1; + return (unsigned)lssb32_0(value) + 1; } -static INLINE int +static INLINE unsigned mssb32(const uint32 value) { - return mssb32_0(value) + 1; + return (unsigned)mssb32_0(value) + 1; } -static INLINE int +static INLINE unsigned lssb64(const uint64 value) { - return lssb64_0(value) + 1; + return (unsigned)lssb64_0(value) + 1; } -static INLINE int +static INLINE unsigned mssb64(const uint64 value) { - return mssb64_0(value) + 1; + return (unsigned)mssb64_0(value) + 1; } #ifdef __GNUC__