casting of Standard_RT(0) required before assignment for Borland

This commit is contained in:
Susan Hert 2002-05-07 15:02:59 +00:00
parent 2ac1bbd359
commit 488415d1c0
2 changed files with 5 additions and 2 deletions

View File

@ -1,6 +1,9 @@
Nef_2 Package: Release changes
----------------------------------------------------------------------
1.16 (7 May 2002)
- casting of Standard_RT(0) required before assignment for Borland
1.15 (2 May 2002)
- enclose the temporary variable in a small scope to ensure it
is destroyed earlier for SunPRO compiler

View File

@ -190,8 +190,8 @@ on the extended geometric objects.}*/
CGAL_NTS abs(p.hy()[0])/p.hw()[0]);
} else {
RT rx = CGAL_NTS abs(p.hx()), ry = CGAL_NTS abs(p.hy());
mx = ( rx.degree()>0 ? rx[1] : 0 ); nx = rx[0];
my = ( ry.degree()>0 ? ry[1] : 0 ); ny = ry[0];
mx = ( rx.degree()>0 ? rx[1] : Standard_RT(0) ); nx = rx[0];
my = ( ry.degree()>0 ? ry[1] : Standard_RT(0) ); ny = ry[0];
if ( mx > my ) R = CGAL_NTS abs((ny-nx)/(mx-my));
else if ( mx < my ) R = CGAL_NTS abs((nx-ny)/(my-mx));
else /* mx == my */ R = CGAL_NTS abs(nx-ny)/(2*p.hw()[0]);