This commit is contained in:
iceman1001 2019-04-04 23:48:00 +02:00
parent 444c12717c
commit 4326d05674

View file

@ -87,7 +87,7 @@ static inline double decode_half(unsigned short half) {
if (exp == 0) val = ldexp(mant, -24);
else if (exp != 31) val = ldexp(mant + 1024, exp - 25);
else val = mant == 0 ? INFINITY : NAN;
return half & 0x8000 ? -val : val;
return (half & 0x8000) ? -val : val;
}
# endif
#endif /* CBOR_NO_HALF_FLOAT_TYPE */