Cast the result of the __swapXX macros to the proper type.
authormillert <millert@openbsd.org>
Fri, 21 Apr 2017 19:04:22 +0000 (19:04 +0000)
committermillert <millert@openbsd.org>
Fri, 21 Apr 2017 19:04:22 +0000 (19:04 +0000)
commit7d47ff537ffc3ff98d4129ffb577c4f700459f8a
tree6edad6e16122f0739b4bb245dab650a171f14983
parent33a044c77fdcd44647d9e4e4d227db1368166b13
Cast the result of the __swapXX macros to the proper type.
The ternary operator was causing the result to be promoted to
int for __swap16.  Fixes warning with clang.  OK guenther@
sys/sys/_endian.h