]> www.ginac.de Git - ginac.git/commitdiff
- removed an unused statement in tensor.cpp
authorChristian Bauer <Christian.Bauer@uni-mainz.de>
Wed, 6 Nov 2002 20:10:39 +0000 (20:10 +0000)
committerChristian Bauer <Christian.Bauer@uni-mainz.de>
Wed, 6 Nov 2002 20:10:39 +0000 (20:10 +0000)
- symbol names generated by GiNaC had an extra null byte at the end

ginac/tensor.cpp
ginac/tostring.h

index af085ece2ccb1bdef1c1361d7f058839c83f1d4c..b49cbc05498be1b2e0558d0ca2073924ba5702ab 100644 (file)
@@ -492,7 +492,6 @@ bool tensepsilon::contract_with(exvector::iterator self, exvector::iterator othe
        if (is_ex_exactly_of_type(other->op(0), tensepsilon) && num+1 == other->nops()) {
 
                // Contraction of two epsilon tensors is a determinant
        if (is_ex_exactly_of_type(other->op(0), tensepsilon) && num+1 == other->nops()) {
 
                // Contraction of two epsilon tensors is a determinant
-               ex dim = ex_to<idx>(self->op(1)).get_dim();
                bool variance = is_a<varidx>(self->op(1));
                matrix M(num, num);
                for (int i=0; i<num; i++) {
                bool variance = is_a<varidx>(self->op(1));
                matrix M(num, num);
                for (int i=0; i<num; i++) {
index 4c603330f8d4b099a7169398335b6284e639f978..00c32ce6689fe055d40d8f661fd185d33f2be704 100644 (file)
@@ -32,7 +32,7 @@ template<class T>
 std::string ToString(const T & t)
 {
        std::ostringstream buf;
 std::string ToString(const T & t)
 {
        std::ostringstream buf;
-       buf << t << std::ends;
+       buf << t;
        return buf.str();
 }
 
        return buf.str();
 }