]> git.pld-linux.org Git - packages/3DLDF.git/blob - upstream-sys-std_numeric_limits.patch
- release 7 (rebuild with gsl 2.6)
[packages/3DLDF.git] / upstream-sys-std_numeric_limits.patch
1 Description: system: set second-largest-FP from std::numeric_limits
2  System::get_second_largest <(float|double)> is as transportable as
3  reinterpret_cast , that is, NOT. As suggested in gsltmplt.web ,
4  it is replaced with std::numeric_limits<(float|double)>::max() .
5 Origin: debian
6 Author: Jerome Benoit <calculus@rezozer.net>
7 Last-Update: 2015-11-23
8
9 --- a/src/main.web
10 +++ b/src/main.web
11 @@ -1032,10 +1032,20 @@
12    @<Print version, copyright, and license information@>;
13  
14    if (ldf_real_float)
15 -    MAX_REAL = System::get_second_largest<float>(FLT_MAX, false);
16 +    MAX_REAL =
17 +#if 0
18 +                       System::get_second_largest<float>(FLT_MAX, false);
19 +#else
20 +                       std::numeric_limits<float>::max();
21 +#endif
22    else if (ldf_real_double)
23 -    MAX_REAL = System::get_second_largest<double>(DBL_MAX, false);
24 -  
25 +    MAX_REAL =
26 +#if 0
27 +                       System::get_second_largest<double>(DBL_MAX, false);
28 +#else
29 +                       std::numeric_limits<double>::max();
30 +#endif
31 +
32    MAX_REAL_SQRT = sqrt(MAX_REAL);
33  
34    cerr.setf(ios::fixed, ios::floatfield);
This page took 0.04974 seconds and 3 git commands to generate.