From 794a688470a8fda029f1c00bbbd9f7367d0fda25 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Thu, 29 Jan 2015 15:44:30 +1100 Subject: [PATCH] float: almost_equal takes unsigned ULPs --- float.cpp | 2 +- float.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/float.cpp b/float.cpp index e96c758c..a49da312 100644 --- a/float.cpp +++ b/float.cpp @@ -106,7 +106,7 @@ template bool ieee_float::almost_equal (floating_t _a, floating_t _b, - uint_t ulps) + unsigned ulps) { // Ensure ULPs is small enough that the default NaNs won't compare as // equal to anything else. diff --git a/float.hpp b/float.hpp index b3af11b6..bfe2ab70 100644 --- a/float.hpp +++ b/float.hpp @@ -51,7 +51,7 @@ class ieee_float { bool operator== (floating_t) const; static bool almost_equal (floating_t, floating_t); - static bool almost_equal (floating_t, floating_t, uint_t ulps); + static bool almost_equal (floating_t, floating_t, unsigned ulps); };