From 7a3c58c7cce4d4f1fb29625d4e1decdb16cf9ada Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Fri, 17 Mar 2023 15:08:58 +0100 Subject: [PATCH] Real.h --- CGAL_Core/include/CGAL/CORE/Real.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CGAL_Core/include/CGAL/CORE/Real.h b/CGAL_Core/include/CGAL/CORE/Real.h index 35ae40c0455..6ca51cbf449 100644 --- a/CGAL_Core/include/CGAL/CORE/Real.h +++ b/CGAL_Core/include/CGAL/CORE/Real.h @@ -357,7 +357,7 @@ struct real_div { bf_a.approx(a.BigRatValue(), bf_b.MSB() - bf_b.flrLgErr() + 1, CORE_posInfty); return bf_a.div(bf_b, r); } else // both are BigRat - return BigRat(a.BigRatValue(), b.BigRatValue()); + return BigRat(a.BigRatValue() / b.BigRatValue()); } else if (a.ID() == REAL_BIGFLOAT || b.ID() == REAL_BIGFLOAT || a.ID() == REAL_DOUBLE || b.ID() == REAL_DOUBLE) { return a.BigFloatValue().div(b.BigFloatValue(), r);