From bcec56a4ad2fd3548da0fecea9b395d31c041c9e Mon Sep 17 00:00:00 2001
From: Tim Keil <tim.keil@wwu.de>
Date: Fri, 7 Dec 2018 11:46:35 +0100
Subject: [PATCH] [FloatCmp] Small fix

---
 dune/xt/common/float_cmp_internal.hh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dune/xt/common/float_cmp_internal.hh b/dune/xt/common/float_cmp_internal.hh
index d0026eda3..130f8cdfa 100644
--- a/dune/xt/common/float_cmp_internal.hh
+++ b/dune/xt/common/float_cmp_internal.hh
@@ -355,7 +355,7 @@ cmp_ge(const T& xx, const T& yy, const T& rtol, const T& atol)
 template <class T>
 typename std::enable_if<is_complex<T>::value, bool>::type cmp_ge(const T& xx, const T& yy, const T& rtol, const T& atol)
 {
-  return cmp_ge(real(xx), real(yy), rtol, atol) && cmp_ge(imag(xx), imag(yy), rtol, atol);
+  return cmp_ge(real(xx), real(yy), real(rtol), real(atol)) && cmp_ge(imag(xx), imag(yy), imag(rtol), imag(atol));
 }
 
 template <class XType, class YType, class TolType>
@@ -406,7 +406,7 @@ cmp_le(const T& xx, const T& yy, const T& rtol, const T& atol)
 template <class T>
 typename std::enable_if<is_complex<T>::value, bool>::type cmp_le(const T& xx, const T& yy, const T& rtol, const T& atol)
 {
-  return cmp_le(real(xx), real(yy), rtol, atol) && cmp_le(imag(xx), imag(yy), rtol, atol);
+  return cmp_le(real(xx), real(yy), real(rtol), real(atol)) && cmp_le(imag(xx), imag(yy), imag(rtol), imag(atol));
 }
 
 template <class XType, class YType, class TolType>
-- 
GitLab