From 9f0915acb69d0968aff1ff864710e0bdc23ab97e Mon Sep 17 00:00:00 2001 From: Olivier Parcollet Date: Thu, 30 Jan 2014 21:29:53 +0100 Subject: [PATCH] gfs, matsubara: correct unary - for matsubara_freq - The unary - of matsubara_freq was not correct ... missing () around the == --- triqs/gfs/domains/matsubara.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/triqs/gfs/domains/matsubara.hpp b/triqs/gfs/domains/matsubara.hpp index 48792b93..5959a649 100644 --- a/triqs/gfs/domains/matsubara.hpp +++ b/triqs/gfs/domains/matsubara.hpp @@ -59,7 +59,7 @@ namespace gfs { } inline matsubara_freq operator-(matsubara_freq const &mp) { - return {-(mp.n + mp.statistic == Fermion ? 1 : 0), mp.beta, mp.statistic}; + return {-(mp.n + (mp.statistic == Fermion ? 1 : 0)), mp.beta, mp.statistic}; } //---------------------------------------------------------------------------------------------------------