summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-02-13 09:22:12 -0800
committerJosh Blum <josh@joshknows.com>2010-02-13 09:22:12 -0800
commit97785c838e088f978c8dd2c4c796cdcbeafebffc (patch)
tree30b6dbbcd145f507cc353df220bf3b80425fdea5 /include
parent51e5396079d8af7cf8287b586ff2351a19ae8381 (diff)
downloaduhd-97785c838e088f978c8dd2c4c796cdcbeafebffc.tar.gz
uhd-97785c838e088f978c8dd2c4c796cdcbeafebffc.tar.bz2
uhd-97785c838e088f978c8dd2c4c796cdcbeafebffc.zip
Compiling under old fedora8 with boost 1.37.
Fixed somethings that caused errors and warnings. Cannot get rid of all warnings on this system.
Diffstat (limited to 'include')
-rw-r--r--include/uhd/utils.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/uhd/utils.hpp b/include/uhd/utils.hpp
index 13367990e..4c95b4964 100644
--- a/include/uhd/utils.hpp
+++ b/include/uhd/utils.hpp
@@ -89,7 +89,7 @@ inline void tune(
// Calculate the DDC setting that will downconvert the baseband from the
// daughterboard to our target frequency.
freq_t delta_freq = target_freq - inter_freq;
- int delta_sign = std::signum(delta_freq);
+ freq_t delta_sign = std::signum(delta_freq);
delta_freq *= delta_sign;
delta_freq = fmod(delta_freq, dsp_sample_rate);
bool inverted = delta_freq > dsp_sample_rate/2.0;