]> www.ginac.de Git - ginac.git/blobdiff - ginac/tensor.cpp
fixed some -Wall stuff
[ginac.git] / ginac / tensor.cpp
index 00d0cdff12da38478cd6ccc5fa8502270d145640..1c8847a41b1f5dede2b29e2e61919369e6baa52f 100644 (file)
@@ -344,7 +344,7 @@ bool tensdelta::contract_with(exvector::iterator self, exvector::iterator other,
 
 again:
        if (self_idx->is_symbolic()) {
-               for (int i=1; i<other->nops(); i++) {
+               for (unsigned i=1; i<other->nops(); i++) {
                        const idx &other_idx = ex_to<idx>(other->op(i));
                        if (is_dummy_pair(*self_idx, other_idx)) {
 
@@ -389,7 +389,7 @@ bool tensmetric::contract_with(exvector::iterator self, exvector::iterator other
 
 again:
        if (self_idx->is_symbolic()) {
-               for (int i=1; i<other->nops(); i++) {
+               for (unsigned i=1; i<other->nops(); i++) {
                        const idx &other_idx = ex_to<idx>(other->op(i));
                        if (is_dummy_pair(*self_idx, other_idx)) {
 
@@ -467,7 +467,7 @@ bool spinmetric::contract_with(exvector::iterator self, exvector::iterator other
 
 again:
        if (self_idx->is_symbolic()) {
-               for (int i=1; i<other->nops(); i++) {
+               for (unsigned i=1; i<other->nops(); i++) {
                        const idx &other_idx = ex_to<idx>(other->op(i));
                        if (is_dummy_pair(*self_idx, other_idx)) {