mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-11-11 01:55:38 +08:00
clarify
This commit is contained in:
parent
444c12717c
commit
4326d05674
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue