From f14e740a4475e0b0330fb05df543100eec6abdc3 Mon Sep 17 00:00:00 2001 From: Yury Melnichek Date: Sun, 19 Dec 2010 12:41:14 +0100 Subject: [PATCH] Increase AlmostEqual epsilon from 64 to 256. Fixes #76. --- base/math.hpp | 2 +- omim.pro | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/base/math.hpp b/base/math.hpp index 0252c255c3..096fe94f1c 100644 --- a/base/math.hpp +++ b/base/math.hpp @@ -14,7 +14,7 @@ namespace my // Infinity is treated as almost equal to the largest possible floating point values. // NaN produces undefined result. // See http://www.cygnus-software.com/papers/comparingfloats/comparingfloats.htm for details. -template bool AlmostEqual(FloatT x, FloatT y, unsigned int maxULPs = 64) +template bool AlmostEqual(FloatT x, FloatT y, unsigned int maxULPs = 256) { STATIC_ASSERT(is_floating_point::value); STATIC_ASSERT(numeric_limits::is_iec559); diff --git a/omim.pro b/omim.pro index db29fe672c..b8b54a9f4c 100644 --- a/omim.pro +++ b/omim.pro @@ -18,7 +18,7 @@ SUBDIRS = 3party \ indexer/indexer_tool \ qt_tstfrm \ indexer/indexer_tests \ - yg/yg_tests \ +# yg/yg_tests \ qt }