diff options
-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; |