]> www.ginac.de Git - ginac.git/blobdiff - ginac/integration_kernel.cpp
[BUGFIX] Fix crash in parser.
[ginac.git] / ginac / integration_kernel.cpp
index 5e4405190cf20cb4bc4c25a8b6b170875b453374..d224bd8b0ab5902afa1921eb8609251eae7ce692 100644 (file)
@@ -3,7 +3,7 @@
  *  Implementation of GiNaC's integration kernels for iterated integrals. */
 
 /*
- *  GiNaC Copyright (C) 1999-2021 Johannes Gutenberg University Mainz, Germany
+ *  GiNaC Copyright (C) 1999-2024 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
@@ -1963,6 +1963,8 @@ ex modular_form_kernel::series(const relational & r, int order, unsigned options
        subs_q_expansion do_subs_q_expansion(qbar, order);
 
        ex res = do_subs_q_expansion(P).series(qbar,order);
+       res += Order(pow(qbar,order));
+       res = res.series(qbar,order);
 
        return res;
 }