From 6e732baec20112b44eb0ed53a2833567bfa8749e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Rheinl=C3=A4nder?= Date: Mon, 20 Sep 2010 11:12:10 +0000 Subject: [PATCH] clifford: fix a few GCCisms (or, not). Some compilers (in particular, msvc) choke on `or' and `not'. Use standard ! and || instead. --- ginac/clifford.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ginac/clifford.cpp b/ginac/clifford.cpp index d70f0f50..e5ebb401 100644 --- a/ginac/clifford.cpp +++ b/ginac/clifford.cpp @@ -1291,11 +1291,11 @@ lst clifford_to_lst(const ex & e, const ex & c, bool algebraic) if (algebraic) // check if algebraic method is applicable for (unsigned int i = 0; i < D; i++) if (pow(c.subs(mu == i, subs_options::no_pattern), 2).is_zero() - or (not is_a(pow(c.subs(mu == i, subs_options::no_pattern), 2)))) + || (! is_a(pow(c.subs(mu == i, subs_options::no_pattern), 2)))) algebraic = false; lst V; ex v0 = remove_dirac_ONE(canonicalize_clifford(e+clifford_prime(e)).normal())/2; - if (not v0.is_zero()) + if (! v0.is_zero()) V.append(v0); ex e1 = canonicalize_clifford(e - v0 * dirac_ONE(ex_to(c).get_representation_label())); if (algebraic) { @@ -1312,7 +1312,7 @@ lst clifford_to_lst(const ex & e, const ex & c, bool algebraic) e1 = canonicalize_clifford(expand_dummy_sum(e, true)); V.remove_all(); v0 = remove_dirac_ONE(canonicalize_clifford(e1+clifford_prime(e1)).normal())/2; - if (not v0.is_zero()) { + if (! v0.is_zero()) { V.append(v0); e1 = canonicalize_clifford(e1 - v0 * dirac_ONE(ex_to(c).get_representation_label())); } -- 2.44.0