]> www.ginac.de Git - ginac.git/commitdiff
* Fixed bug in convert_H_to_Li()
authorJens Vollinga <vollinga@thep.physik.uni-mainz.de>
Mon, 1 Dec 2003 18:03:56 +0000 (18:03 +0000)
committerJens Vollinga <vollinga@thep.physik.uni-mainz.de>
Mon, 1 Dec 2003 18:03:56 +0000 (18:03 +0000)
* Removed safety check in convert_parameter_H_to_Li()

ginac/inifcns_nstdsums.cpp

index 6217d8b5b2901ace0eb1cd547781cdaf03d0f465..4b8122d23e33151d487405ea07d951c085e40770 100644 (file)
@@ -1141,10 +1141,6 @@ bool convert_parameter_H_to_Li(const lst& l, lst& m, lst& s, ex& pf)
                        }
                }
        }
-       for (; acc > 1; acc--) {
-               throw std::runtime_error("ERROR!");
-               m.append(0);
-       }
        
        return has_negative_parameters;
 }
@@ -2141,9 +2137,9 @@ ex convert_H_to_Li(const ex& m, const ex& x)
        map_trafo_H_reduce_trailing_zeros filter;
        map_trafo_H_convert_to_Li filter2;
        if (is_a<lst>(m)) {
-               return filter2(filter(H(m, x).hold())).eval();
+               return filter2(filter(H(m, x).hold()));
        } else {
-               return filter2(filter(H(lst(m), x).hold())).eval();
+               return filter2(filter(H(lst(m), x).hold()));
        }
 }