util: fix get_d64 return value

This commit is contained in:
bnnm 2021-09-16 00:13:52 +02:00
parent 7bb2434b56
commit 3b0bbb25bf

View File

@ -70,7 +70,15 @@ static inline float get_f32le(const uint8_t* p) {
temp.u32 = get_u32le(p);
return temp.f32;
}
static inline float get_d64le(const uint8_t* p) {
static inline double get_d64be(const uint8_t* p) {
union {
uint64_t u64;
double d64;
} temp;
temp.u64 = get_u64be(p);
return temp.d64;
}
static inline double get_d64le(const uint8_t* p) {
union {
uint64_t u64;
double d64;