From e1e94a1304ca2b1afe98dd7ad1703643dc2b141c Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Fri, 24 Jan 2025 18:14:29 +0100 Subject: [PATCH] fix a warning from UBSAN (in a postcondition) --- Number_types/include/CGAL/MP_Float.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Number_types/include/CGAL/MP_Float.h b/Number_types/include/CGAL/MP_Float.h index f6811a0f116..f5790515241 100644 --- a/Number_types/include/CGAL/MP_Float.h +++ b/Number_types/include/CGAL/MP_Float.h @@ -167,7 +167,7 @@ public: low = static_cast(l & mask); //extract low bits from l high= static_cast((l - low) >> sizeof_limb); //extract high bits from l - CGAL_postcondition ( l == low + ( static_cast(high) << sizeof_limb ) ); + CGAL_postcondition ( l == low + ( high * (limb2(1) << sizeof_limb) ) ); } // Given a limb2, returns the higher limb.