mirror of
https://github.com/greatscottgadgets/hackrf.git
synced 2026-03-06 15:30:18 +01:00
lib: un-break msvc
This commit is contained in:
@@ -787,7 +787,8 @@ int ADDCALL hackrf_set_sample_rate(hackrf_device* device, const double freq)
|
||||
union {
|
||||
uint64_t u64;
|
||||
double d;
|
||||
} v = { .d = freq };
|
||||
} v;
|
||||
v.d = freq;
|
||||
|
||||
e = (v.u64 >> 52) - 1023;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user