From 748d5c694eba293b1d4a3db4e111a4783cb13d82 Mon Sep 17 00:00:00 2001 From: Julen Urizar Compains Date: Sat, 30 Apr 2022 00:24:49 +0200 Subject: [PATCH] [CRT] Fix MinGW-arm intrin minor bug in _byteswap_ushort (#4475) A little bug were in the CRT, found with RosBE and cegcc compiler: ../sdk/include/crt/mingw32/intrin_arm.h:44:32: error: '<<' in boolean context, did you mean '<' ? [-Werror=int-in-bool-context] Thanks to @HBelusca for suggesting the fix. CORE-17604 --- sdk/include/crt/mingw32/intrin_arm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/include/crt/mingw32/intrin_arm.h b/sdk/include/crt/mingw32/intrin_arm.h index f5a07b381fb..7799f15bdd6 100644 --- a/sdk/include/crt/mingw32/intrin_arm.h +++ b/sdk/include/crt/mingw32/intrin_arm.h @@ -41,7 +41,7 @@ __INTRIN_INLINE void __break(unsigned int value) { __asm__ __volatile__("bkpt %0 __INTRIN_INLINE unsigned short _byteswap_ushort(unsigned short value) { - return (value >> 8) || (value << 8); + return (value >> 8) | (value << 8); } __INTRIN_INLINE unsigned _CountLeadingZeros(long Mask)