From: Richard Kreckel Date: Tue, 11 Jan 2000 22:49:07 +0000 (+0000) Subject: - made nops() return unsigned instead of int X-Git-Tag: release_0-5-0~70 X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=commitdiff_plain;h=871695b656ffdc8336a8c00247dc14255bea7b8b;hp=52fec0ff3ba58d05dcaa8401c972f7d9263217c7 - made nops() return unsigned instead of int --- diff --git a/ginac/container.pl b/ginac/container.pl index d89685bc..5979038d 100755 --- a/ginac/container.pl +++ b/ginac/container.pl @@ -181,7 +181,7 @@ public: void print(ostream & os, unsigned upper_precedence=0) const; void printtree(ostream & os, unsigned indent) const; bool info(unsigned inf) const; - int nops() const; + unsigned nops() const; ex & let_op(int const i); ex expand(unsigned options=0) const; bool has(ex const & other) const; @@ -544,7 +544,7 @@ void ${CONTAINER}::printtree(ostream & os, unsigned indent) const // ${CONTAINER}::info() will be implemented by user elsewhere"; -int ${CONTAINER}::nops() const +unsigned ${CONTAINER}::nops() const { return seq.size(); } diff --git a/ginac/function.pl b/ginac/function.pl index 250bf767..f08990d9 100755 --- a/ginac/function.pl +++ b/ginac/function.pl @@ -519,7 +519,7 @@ void function::printtree(ostream & os, unsigned indent) const << ", hash=" << hashvalue << " (0x" << hex << hashvalue << dec << ")" << ", flags=" << flags << ", nops=" << nops() << endl; - for (int i=0; i