Eliminate 'condition sizeof(long)>4 is always true' cppcheck style warning
authorIvan Maidanski <ivmai@mail.ru>
Mon, 20 Feb 2017 19:16:54 +0000 (22:16 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 20 Feb 2017 19:16:54 +0000 (22:16 +0300)
commit27a20507a734c1d2c118950e16461fd240f4131e
tree385d29bfd68f135565590e88abacf8c6333d34c6
parentaae79672c86e65f0d1541252741c4a93532fd6de
Eliminate 'condition sizeof(long)>4 is always true' cppcheck style warning

* src/atomic_ops_malloc.c (msb): Cast (s >> 32) to unsigned int type
before assigning the result to v; check __SIZEOF_SIZE_T__ value (if
defined) to decide whether (s >> 32) is needed; move condition
(sizeof(size_t) > 4) to SIZEOF_SIZE_T_GT_4 macro (to eliminate cppcheck
false report that the condition is always true).
src/atomic_ops_malloc.c