cast the result of the ternary ops in __swapXX to the relevant types.
authordlg <dlg@openbsd.org>
Fri, 5 Jan 2018 05:08:53 +0000 (05:08 +0000)
committerdlg <dlg@openbsd.org>
Fri, 5 Jan 2018 05:08:53 +0000 (05:08 +0000)
commit0e466aa161c4f28a4f69665c3e91f50678143687
treec36c47ef9678769bc8f2c316b6d0831b22b515a0
parent7a818b26919d6842f7ee03416b597e5f45538e6d
cast the result of the ternary ops in __swapXX to the relevant types.

it appears clang and guenther@ have a different way of interpreting
the c standards around type promotion and ternary operators compared
to gcc and me.

"no you do it" guenther@
sys/sys/_endian.h