- Fix warning with Borland.

This commit is contained in:
Sylvain Pion 2003-02-13 15:40:55 +00:00
parent e4e5e02986
commit d7d60c39a6
2 changed files with 5 additions and 0 deletions

View File

@ -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

View File

@ -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));
}