From 871695b656ffdc8336a8c00247dc14255bea7b8b Mon Sep 17 00:00:00 2001 From: Richard Kreckel Date: Tue, 11 Jan 2000 22:49:07 +0000 Subject: [PATCH] - made nops() return unsigned instead of int --- ginac/container.pl | 4 ++-- ginac/function.pl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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