X-Git-Url: https://ginac.de/ginac.git//ginac.git?a=blobdiff_plain;f=ginac%2Fexpairseq.cpp;h=246424f7559ff394651c5c7ee0564993fc8380ea;hb=19d82770007e4d565ce4d07e3e7a02a1809de4eb;hp=56fcba68fda4489dc60ef2f32629f76f7be2aff8;hpb=e5362a33f72613b324b3714524a8c2e5f7b7f46f;p=ginac.git diff --git a/ginac/expairseq.cpp b/ginac/expairseq.cpp index 56fcba68..246424f7 100644 --- a/ginac/expairseq.cpp +++ b/ginac/expairseq.cpp @@ -191,7 +191,7 @@ void expairseq::archive(archive_node &n) const while (i != iend) { n.add_ex("rest", i->rest); n.add_ex("coeff", i->coeff); - i++; + ++i; } n.add_ex("overall_coeff", overall_coeff); } @@ -271,7 +271,7 @@ void expairseq::printtree(std::ostream & os, unsigned indent) const for (epplist::const_iterator it=hashtab[i].begin(); it!=hashtab[i].end(); ++it) { os << *it-seq.begin() << " "; - this_bin_fill++; + ++this_bin_fill; } os << std::endl; cum_fill += this_bin_fill; @@ -914,7 +914,7 @@ void expairseq::make_flat(const exvector & v) cit=v.begin(); while (cit!=citend) { if (cit->bp->tinfo()==tinfo()) { - nexpairseqs++; + ++nexpairseqs; noperands+=ex_to_expairseq(*cit).seq.size(); } ++cit; @@ -965,7 +965,7 @@ void expairseq::make_flat(const epvector & v) cit = v.begin(); while (cit!=citend) { if (cit->rest.bp->tinfo()==tinfo()) { - nexpairseqs++; + ++nexpairseqs; noperands += ex_to_expairseq((*cit).rest).seq.size(); } ++cit; @@ -1090,7 +1090,7 @@ void expairseq::canonicalize(void) do { last_numeric--; } while (is_ex_exactly_of_type((*last_numeric).rest,numeric)); - last_numeric++; + ++last_numeric; sort(last_numeric,seq.end(),expair_is_less()); } } @@ -1197,11 +1197,11 @@ unsigned expairseq::calc_hashindex(const ex & e) const unsigned hash=e.gethash(); unsigned hashindex; if (is_a_numeric_hash(hash)) { - hashindex=hashmask; + hashindex = hashmask; } else { - hashindex=hash & hashmask; + hashindex = hash & hashmask; // last hashtab entry is reserved for numerics - if (hashindex==hashmask) hashindex=0; + if (hashindex==hashmask) hashindex = 0; } GINAC_ASSERT(hashindex>=0); GINAC_ASSERT((hashindexreserve(seq.size()); // copy parts of seq which are known not to have changed