Re:Results of the 2015 Underhanded C Contest
by scatters on Thursday February 04, 2016 @12:46PM
(#11035669)
The interesting thing about changing return types is that you can alter the return type of spectral_contrast to float_t without affecting behavior, since float is promoted to double for argument passing (it's passed and returned in the xmm registers).
Of course the warning can always be silenced by doing something like:
and adding a misleading comment about the explicit cast.