mirror of https://github.com/CGAL/cgal
- Fix warning with Borland.
This commit is contained in:
parent
e4e5e02986
commit
d7d60c39a6
|
|
@ -1,3 +1,6 @@
|
|||
Version 4.160
|
||||
- Fix warning with Borland.
|
||||
|
||||
Version 4.159
|
||||
- Added function zero() to make the testsuite pass for Intel 7 with -O2
|
||||
|
||||
|
|
|
|||
|
|
@ -467,6 +467,7 @@ inline
|
|||
Interval_base
|
||||
to_interval (const long & l)
|
||||
{
|
||||
#ifndef __BORLANDC__ // The stupid Borland compiler generates warnings...
|
||||
if (sizeof(double) > sizeof(long)) {
|
||||
// On 64bit platforms, a long doesn't fit exactly in a double.
|
||||
// Well, a perfect fix would be to use std::numeric_limits<>, but...
|
||||
|
|
@ -476,6 +477,7 @@ to_interval (const long & l)
|
|||
return approx + Interval_nt_advanced(Interval_base::Smallest);
|
||||
}
|
||||
else
|
||||
#endif
|
||||
return Interval_base(double(l));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue