lib: un-break msvc

This commit is contained in:
Hoernchen
2013-06-11 12:55:10 +02:00
parent d55a591175
commit ecdaf40fb7

View File

@ -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;