blob: d387a197612fce75c6b58ab22bf6477ec57b3954 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
--- include/Lcommon.h.orig 2020-03-29 15:43:34 UTC
+++ include/Lcommon.h
@@ -1,3 +1,4 @@
+// Patches borrowed from SageMath.
// When MPFR is enabled and double is passed to a templated function
// The function should use precise(ttype) to make sure calculations run
// within the more precise type
@@ -48,7 +49,7 @@ const bool outputSeries=true; // Whether to output t
// Loop i from m to n
// Useful in tidying up most for loops
-#define loop(i,m,n) for(typeof(m) i=(m); i!=(n); i++)
+#define loop(i,m,n) for(auto i=(m); i!=(n); i++)
// A class for calculations involving polynomials of small degree
// Not efficient enough for huge polynomials
|