mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 07:13:20 +00:00
Bug 1575679 - Update libnestegg to pick up PR 65. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D42966 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
934253ce7d
commit
36165906fe
@ -19,5 +19,5 @@ origin:
|
||||
license: "ISC"
|
||||
|
||||
# update.sh will update this value
|
||||
release: "9d5b774db2bb5a982c1438a17ad1bcaf6ea03cbd (2019-06-04 16:27:15 +1200)"
|
||||
release: "773adcc29d2c52891421c0b0c10059abf9bc17ea (2019-08-22 09:44:55 +1200)"
|
||||
|
||||
|
@ -834,7 +834,15 @@ ne_read_float(nestegg_io * io, double * val, uint64_t length)
|
||||
{
|
||||
union {
|
||||
uint64_t u;
|
||||
float f;
|
||||
struct {
|
||||
#if __FLOAT_WORD_ORDER__ == __ORDER_BIG_ENDIAN__
|
||||
uint32_t _pad;
|
||||
float f;
|
||||
#else
|
||||
float f;
|
||||
uint32_t _pad;
|
||||
#endif
|
||||
} f;
|
||||
double d;
|
||||
} value;
|
||||
int r;
|
||||
@ -846,7 +854,7 @@ ne_read_float(nestegg_io * io, double * val, uint64_t length)
|
||||
if (r != 1)
|
||||
return r;
|
||||
if (length == 4)
|
||||
*val = value.f;
|
||||
*val = value.f.f;
|
||||
else
|
||||
*val = value.d;
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user