From 65d95e335562492424cade2c03e5b23791f67f61 Mon Sep 17 00:00:00 2001 From: Michael Hemmer Date: Mon, 1 Dec 2008 12:46:40 +0000 Subject: [PATCH] remove warning for i686_Linux-2.6_CC-5.90_F7 --- .../include/CGAL/Modular_arithmetic/Residue_type.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 */