https://git.reactos.org/?p=reactos.git;a=commitdiff;h=748d5c694eba293b1d4a3d...
commit 748d5c694eba293b1d4a3db4e111a4783cb13d82 Author: Julen Urizar Compains julenuri@hotmail.com AuthorDate: Sat Apr 30 00:24:49 2022 +0200 Commit: GitHub noreply@github.com CommitDate: Sat Apr 30 01:24:49 2022 +0300
[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)