hackrf_transfer - cast with uint32_t

The compiler (MSVC 2013) didnt have the uint typedef,
switched to using uint32_t which is the type of sample_rate_hz.
This commit is contained in:
Josh Blum
2016-07-20 17:37:35 -07:00
parent ab58c3c29c
commit cccde1b431

View File

@ -829,7 +829,7 @@ int main(int argc, char** argv) {
// Change the freq and sample rate to correct the crystal clock error.
if( crystal_correct ) {
sample_rate_hz = (uint)((double)sample_rate_hz * (1000000 - crystal_correct_ppm)/1000000+0.5);
sample_rate_hz = (uint32_t)((double)sample_rate_hz * (1000000 - crystal_correct_ppm)/1000000+0.5);
freq_hz = freq_hz * (1000000 - crystal_correct_ppm)/1000000;
}