Commit | Line | Data |
---|---|---|
fedb9571 AE |
1 | Patch taken from the Sage packaging system. |
2 | ||
3 | diff --git a/include/Lcommon.h b/include/Lcommon.h | |
4 | index 1b3be43..bf40532 100644 | |
5 | --- a/include/Lcommon.h | |
6 | +++ b/include/Lcommon.h | |
7 | @@ -48,7 +48,7 @@ const bool outputSeries=true; // Whether to output the coefficients or just th | |
8 | ||
9 | // Loop i from m to n | |
10 | // Useful in tidying up most for loops | |
11 | -#define loop(i,m,n) for(typeof(m) i=(m); i!=(n); i++) | |
12 | +#define loop(i,m,n) for(auto i=(m); i!=(n); i++) | |
13 | ||
14 | // A class for calculations involving polynomials of small degree | |
15 | // Not efficient enough for huge polynomials | |
16 | diff --git a/include/Lcommon_ld.h b/include/Lcommon_ld.h | |
17 | index 86ae4df..33c560c 100644 | |
18 | --- a/include/Lcommon_ld.h | |
19 | +++ b/include/Lcommon_ld.h | |
20 | @@ -53,7 +53,7 @@ const bool outputSeries=true; // Whether to output the coefficients or just th | |
21 | ||
22 | // Loop i from m to n | |
23 | // Useful in tidying up most for loops | |
24 | -#define loop(i,m,n) for(typeof(m) i=(m); i!=(n); i++) | |
25 | +#define loop(i,m,n) for(auto i=(m); i!=(n); i++) | |
26 | ||
27 | // A class for calculations involving polynomials of small degree | |
28 | // Not efficient enough for huge polynomials | |
29 | diff --git a/include/Lglobals.h b/include/Lglobals.h | |
30 | index 60002e4..ca2606c 100644 | |
31 | --- a/include/Lglobals.h | |
32 | +++ b/include/Lglobals.h | |
33 | @@ -24,9 +24,9 @@ | |
34 | #ifndef Lglobals_H | |
35 | #define Lglobals_H | |
36 | ||
37 | +#include <valarray> | |
38 | using namespace std; | |
39 | ||
40 | -#include <valarray> | |
41 | #ifdef USE_MPFR | |
42 | #include "Lgmpfrxx.h" | |
43 | typedef mpfr_class Double; |