mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 10:01:43 +00: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:
parent
dbc7eeb47e
commit
748d5c694e
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue