From cccde1b43102b0e24cf97be2c09185e5c482c2ad Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Wed, 20 Jul 2016 17:37:35 -0700 Subject: [PATCH] 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. --- host/hackrf-tools/src/hackrf_transfer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host/hackrf-tools/src/hackrf_transfer.c b/host/hackrf-tools/src/hackrf_transfer.c index a2e0b8c65..8c1b418c6 100644 --- a/host/hackrf-tools/src/hackrf_transfer.c +++ b/host/hackrf-tools/src/hackrf_transfer.c @@ -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; }