X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Frelational.cpp;h=e1bf60072944f2891186420a2acb0c98ed4258e2;hp=d050b2e65fffc14c143cccd35bfc9ddf62412ac5;hb=HEAD;hpb=cb1ab077ba8ef330a75f40cf78b21fabbb35fb62 diff --git a/ginac/relational.cpp b/ginac/relational.cpp index d050b2e6..8607dca9 100644 --- a/ginac/relational.cpp +++ b/ginac/relational.cpp @@ -3,7 +3,7 @@ * Implementation of relations between expressions */ /* - * GiNaC Copyright (C) 1999-2021 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2024 Johannes Gutenberg University Mainz, Germany * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -223,8 +223,8 @@ int relational::compare_same_type(const basic & other) const return (o < oth.o) ? -1 : 1; break; } - const int lcmpval = lh.compare(oth.rh); - return (lcmpval!=0) ? lcmpval : rh.compare(oth.lh); + const int lcmpval = lh.compare(oth.lh); + return (lcmpval!=0) ? lcmpval : rh.compare(oth.rh); } bool relational::match_same_type(const basic & other) const @@ -308,7 +308,7 @@ relational::safe_bool relational::make_safe_bool(bool cond) const * unequal or undecidable). */ relational::operator relational::safe_bool() const { - const ex df = lh-rh; + const ex df = lh-rh; // like ::canonical() method // We treat numeric and symbolic expression differently if (is_exactly_a(df)) { switch (o) {