3
0
mirror of https://github.com/triqs/dft_tools synced 2024-10-31 19:23:45 +01:00

gfs, matsubara: correct unary - for matsubara_freq

- The unary - of matsubara_freq was not correct ...
missing () around the ==
This commit is contained in:
Olivier Parcollet 2014-01-30 21:29:53 +01:00
parent eda6eb90a2
commit 9f0915acb6

View File

@ -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};
}
//---------------------------------------------------------------------------------------------------------