diff --git a/Modular_arithmetic/include/CGAL/Modular_arithmetic/Residue_type.h b/Modular_arithmetic/include/CGAL/Modular_arithmetic/Residue_type.h index a0dc41ef07e..34523c9f0a8 100644 --- a/Modular_arithmetic/include/CGAL/Modular_arithmetic/Residue_type.h +++ b/Modular_arithmetic/include/CGAL/Modular_arithmetic/Residue_type.h @@ -126,10 +126,10 @@ private: /* Little modular reduction (e.g. after a simple addition). */ static inline double RES_soft_reduce (double a){ - double prime = get_prime(); + double p = get_prime(); double b = 2*a; - return (b>prime) ? a-prime : - ((b<-prime) ? a+prime : a); + return (b>p) ? a-p : + ((b<-p) ? a+p : a); } /* -a */