]> www.ginac.de Git - ginac.git/commitdiff
Fix some warnings about comparison of signed with unsigned.
authorRichard Kreckel <Richard.Kreckel@uni-mainz.de>
Mon, 25 Jul 2005 01:00:37 +0000 (01:00 +0000)
committerRichard Kreckel <Richard.Kreckel@uni-mainz.de>
Mon, 25 Jul 2005 01:00:37 +0000 (01:00 +0000)
ginac/add.cpp
ginac/wildcard.cpp

index 0ece092f655219d3b09cfb60d78f61b587b039a9..74e639aebe27e0d003740c23ea5cc3278999cbbb 100644 (file)
@@ -401,7 +401,7 @@ ex add::evalm() const
 ex add::conjugate() const
 {
        exvector *v = 0;
 ex add::conjugate() const
 {
        exvector *v = 0;
-       for (int i=0; i<nops(); ++i) {
+       for (size_t i=0; i<nops(); ++i) {
                if (v) {
                        v->push_back(op(i).conjugate());
                        continue;
                if (v) {
                        v->push_back(op(i).conjugate());
                        continue;
@@ -412,7 +412,7 @@ ex add::conjugate() const
                        continue;
                v = new exvector;
                v->reserve(nops());
                        continue;
                v = new exvector;
                v->reserve(nops());
-               for (int j=0; j<i; ++j)
+               for (size_t j=0; j<i; ++j)
                        v->push_back(op(j));
                v->push_back(ccterm);
        }
                        v->push_back(op(j));
                v->push_back(ccterm);
        }
index eef0376c0a9caab5ee4e604d6e6b0b7b3afeaef7..8bf8c6a739c1b7e5c6307f21805c5f33cd879159 100644 (file)
@@ -123,7 +123,7 @@ bool haswild(const ex & x)
 {
        if (is_a<wildcard>(x))
                return true;
 {
        if (is_a<wildcard>(x))
                return true;
-       for (int i=0; i<x.nops(); ++i)
+       for (size_t i=0; i<x.nops(); ++i)
                if (haswild(x.op(i)))
                        return true;
        return false;
                if (haswild(x.op(i)))
                        return true;
        return false;