1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
From cccde1b43102b0e24cf97be2c09185e5c482c2ad Mon Sep 17 00:00:00 2001
From: Josh Blum <josh@joshknows.com>
Date: Wed, 20 Jul 2016 17:37:35 -0700
Subject: [PATCH 086/111] 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 a2e0b8c..8c1b418 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;
}
--
2.1.4
|