diff options
author | Josh Allen <axlecrusher@gmail.com> | 2017-02-13 15:29:48 -0500 |
---|---|---|
committer | Josh Allen <axlecrusher@gmail.com> | 2017-02-13 15:29:48 -0500 |
commit | 96c3e7838d96fa87c39b28f78b79b925841e6bd4 (patch) | |
tree | 98c57ee919f59672213f88e29c7cb7008e5b6122 /tools | |
parent | 46e907ad3059001a0d9361098c2f017c36a3dd13 (diff) | |
download | libsurvive-96c3e7838d96fa87c39b28f78b79b925841e6bd4.tar.gz libsurvive-96c3e7838d96fa87c39b28f78b79b925841e6bd4.tar.bz2 |
simplify zero condition
Diffstat (limited to 'tools')
-rw-r--r-- | tools/ootx_decode/ootx_decoder.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/ootx_decode/ootx_decoder.c b/tools/ootx_decode/ootx_decoder.c index eee4e7e..98bac67 100644 --- a/tools/ootx_decode/ootx_decoder.c +++ b/tools/ootx_decode/ootx_decoder.c @@ -225,7 +225,7 @@ float _to_float(uint8_t* data) { uint32_t *ftmp = (uint32_t*)&f; //use the allocated floating point memory - if (((x & 0x7c00) == 0x0000) && ((x & 0x03ff) == 0)) return f; //zero + if ((x & 0x7FFF) == 0) return f; //zero //sign *ftmp = x & 0x8000; |