X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=check%2Fexam_mod_gcd.cpp;h=2a07cea3d957bf18ac17937d7fe354c25a6f0cca;hp=de1faaab6a757559dfe2941ceee1652ba8855464;hb=08c190937df7e802393b588d3cc82d2bdf00b128;hpb=1602530f716ba1d425a0667b897182b99c374823 diff --git a/check/exam_mod_gcd.cpp b/check/exam_mod_gcd.cpp index de1faaab..2a07cea3 100644 --- a/check/exam_mod_gcd.cpp +++ b/check/exam_mod_gcd.cpp @@ -4,7 +4,7 @@ */ /* - * GiNaC Copyright (C) 1999-2009 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2020 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(tv); } static upoly make_random_upoly(const std::size_t deg)