[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
This commit is contained in:
Julen Urizar Compains 2022-04-30 00:24:49 +02:00 committed by GitHub
parent dbc7eeb47e
commit 748d5c694e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)