mirror of
https://github.com/reactos/reactos.git
synced 2026-05-30 23:33:24 +08:00
[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:
committed by
GitHub
parent
dbc7eeb47e
commit
748d5c694e
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user