]> www.ginac.de Git - ginac.git/blobdiff - check/exam_mod_gcd.cpp
Happy New Year!
[ginac.git] / check / exam_mod_gcd.cpp
index 4f7131ef2d75ff77d2be52e3d830f5bab4d5d8bb..c551c673b7e0b93da74e25f0e1fac2b78f947125 100644 (file)
@@ -4,7 +4,7 @@
  */
 
 /*
- *  GiNaC Copyright (C) 1999-2016 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
@@ -91,7 +91,7 @@ static ex upoly_to_ex(const upoly& p, const symbol& x)
        exvector tv(p.size());
        for (std::size_t i = 0; i < p.size(); ++i)
                tv[i] = pow(x, i)*numeric(p[i]);
-       return (new add(tv))->setflag(status_flags::dynallocated);
+       return dynallocate<add>(tv);
 }
 
 static upoly make_random_upoly(const std::size_t deg)