]> www.ginac.de Git - ginac.git/blobdiff - ginac/pseries.cpp
Complete documentation regarding Python 3 requirement.
[ginac.git] / ginac / pseries.cpp
index aa6211bffeecd310a09c23bc5c1ec5fae63f3e1c..4dba512951ca60c36c66a51e78e98e2bd311d256 100644 (file)
@@ -4,7 +4,7 @@
  *  methods for series expansion. */
 
 /*
- *  GiNaC Copyright (C) 1999-2017 Johannes Gutenberg University Mainz, Germany
+ *  GiNaC Copyright (C) 1999-2019 Johannes Gutenberg University Mainz, Germany
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -959,9 +959,8 @@ ex mul::series(const relational & r, int order, unsigned options) const
 
        int degsum = std::accumulate(ldegrees.begin(), ldegrees.end(), 0);
 
-       if (degsum >= order) {
-               epvector epv { expair(Order(_ex1), order) };
-               return dynallocate<pseries>(r, std::move(epv));
+       if (degsum > order) {
+               return dynallocate<pseries>(r, epvector{{Order(_ex1), order}});
        }
 
        // Multiply with remaining terms