From 04305e4ba43de3c290c641fa2cd35019f2ef1c6a Mon Sep 17 00:00:00 2001 From: Sylvain Pion Date: Sat, 24 Jan 2004 20:31:24 +0000 Subject: [PATCH] - Workaround g++ 2.95 pickyness in static_cast<>. --- Packages/H2/changes.txt | 3 +++ Packages/H2/include/CGAL/Homogeneous/function_objects.h | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Packages/H2/changes.txt b/Packages/H2/changes.txt index f58ea771b50..2d4f6083a50 100644 --- a/Packages/H2/changes.txt +++ b/Packages/H2/changes.txt @@ -1,3 +1,6 @@ +2.119 (24 January 2004) +- Workaround g++ 2.95 pickyness in static_cast<>. + 2.118 (19 January 2004) [mk] - added fixes for g++ 2.95.3 and SunPRO CC 5.3 and used the new macro CGAL_CFG_USING_BASE_MEMBER_BUG diff --git a/Packages/H2/include/CGAL/Homogeneous/function_objects.h b/Packages/H2/include/CGAL/Homogeneous/function_objects.h index 077a5a89e62..f1d2b9c2349 100644 --- a/Packages/H2/include/CGAL/Homogeneous/function_objects.h +++ b/Packages/H2/include/CGAL/Homogeneous/function_objects.h @@ -2521,7 +2521,7 @@ namespace HomogeneousKernelFunctors { RT C = qhx*rhw - qhw*rhx; RT D = qhy*rhw - qhw*rhy; - return static_cast(CGAL_NTS compare(A*D, B*C)); + return static_cast((int) CGAL_NTS compare(A*D, B*C)); } }; @@ -2765,7 +2765,7 @@ namespace HomogeneousKernelFunctors { + i * ( b*(g*p - h*o) + f*(d*o - c*p) + n*(c*h - d*g) ) - m * ( b*(g*l - h*k) + f*(d*k - c*l) + j*(c*h - d*g) ); - return static_cast(CGAL_NTS sign(det)); + return static_cast((int) CGAL_NTS sign(det)); } };