From 64a64e1a8ac0cf03700743fbd92b3159c2be8f75 Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Wed, 13 Oct 2021 23:11:56 +0100 Subject: [PATCH] Add a makeCopy() --- CGAL_Core/include/CGAL/CORE/BigInt.h | 1 + 1 file changed, 1 insertion(+) diff --git a/CGAL_Core/include/CGAL/CORE/BigInt.h b/CGAL_Core/include/CGAL/CORE/BigInt.h index 8b2444d1da3..2a35194c519 100644 --- a/CGAL_Core/include/CGAL/CORE/BigInt.h +++ b/CGAL_Core/include/CGAL/CORE/BigInt.h @@ -505,6 +505,7 @@ inline void getKaryExpo(const BigInt& z, BigInt& m, int& e, unsigned long uk) { BigInt k(uk), q, r; e = 0; m = z; + m.makeCopy(); for(;;) { divide_qr(m.get_mp(), k.get_mp(), q.get_mp(), r.get_mp()); if (!r.get_mp().is_zero()) break;