From 97785c838e088f978c8dd2c4c796cdcbeafebffc Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Sat, 13 Feb 2010 09:22:12 -0800 Subject: Compiling under old fedora8 with boost 1.37. Fixed somethings that caused errors and warnings. Cannot get rid of all warnings on this system. --- include/uhd/utils.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') 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; -- cgit v1.2.3