summaryrefslogtreecommitdiff
path: root/math/lcalc/files/patch-include_Lcommon__ld.h
blob: 96878fcd29da0ec3103ed5de8eeb77a4675a71ee (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- include/Lcommon_ld.h.orig	2012-08-08 21:21:55 UTC
+++ include/Lcommon_ld.h
@@ -1,3 +1,5 @@
+// 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
@@ -53,7 +55,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