]> www.ginac.de Git - ginac.git/blobdiff - ginac/polynomial/divide_in_z_p.cpp
Happy New Year!
[ginac.git] / ginac / polynomial / divide_in_z_p.cpp
index e39cb34a1d81b744eb2f4ef42c807dda04303377..7534c53ef46c30c25eb518d4e29ce314f54bda25 100644 (file)
@@ -3,7 +3,7 @@
  *  Implementation of polynomial division in Z/Zp. */
 
 /*
- *  GiNaC Copyright (C) 1999-2010 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
@@ -101,7 +101,7 @@ bool divide_in_z_p(const ex &a, const ex &b, ex &q, const exvector& vars, const
                if (p != 0)
                        r = r.smod(numeric(p));
                if (r.is_zero()) {
-                       q = (new add(v))->setflag(status_flags::dynallocated);
+                       q = dynallocate<add>(v);
                        return true;
                }
                rdeg = r.degree(x);