diff options
| author | Martin Braun <martin.braun@ettus.com> | 2019-05-23 15:10:45 -0700 | 
|---|---|---|
| committer | michael-west <michael.west@ettus.com> | 2019-06-03 18:18:04 -0700 | 
| commit | a5105c40778b1392b69aafcf889a57c563aa2335 (patch) | |
| tree | 74e4e2e8236585e0df601d6ccfe93f31bd09fd0d | |
| parent | 5af0216a365b7e3190f2762c38d588e1384cf4a8 (diff) | |
| download | uhd-a5105c40778b1392b69aafcf889a57c563aa2335.tar.gz uhd-a5105c40778b1392b69aafcf889a57c563aa2335.tar.bz2 uhd-a5105c40778b1392b69aafcf889a57c563aa2335.zip | |
fixup! uhdlib: add rational approximation to math utilities
| -rw-r--r-- | host/lib/include/uhdlib/utils/math.hpp | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/host/lib/include/uhdlib/utils/math.hpp b/host/lib/include/uhdlib/utils/math.hpp index 24db23c50..bcb1b4395 100644 --- a/host/lib/include/uhdlib/utils/math.hpp +++ b/host/lib/include/uhdlib/utils/math.hpp @@ -62,7 +62,7 @@ std::pair<IntegerType, IntegerType> rational_approximation(      // then repeating the algorithm on the fractional part of that mixed      // number until a maximum number of terms or the fractional part is      // nearly zero. -    for (int i = 0; i < MAX_APPROXIMATIONS; ++i) { +    for (size_t i = 0; i < MAX_APPROXIMATIONS; ++i) {          double x = std::floor(1.0 / c);          c        = (1.0 / c) - x; | 
