summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Hopf <mhopf@suse.de>2010-05-07 18:46:30 +0200
committerPeter Hutterer <peter.hutterer@who-t.net>2010-05-18 14:42:42 +1000
commitde3275537db09065510ca2a697cbbe184da9f207 (patch)
tree611ea889d1c705bba98ccc6b9e5e51058723dcc0
parent80547b14a85e4c44631e8b2dc3cd67ccfda7fb43 (diff)
Fix mod() definition.
Presumably no implications, especially security-wise. Signed-off-by: Matthias Hopf <mhopf@suse.de> Reviewed-by: Matt Turner <mattst88@gmail.com> Signed-off-by: Keith Packard <keithp@keithp.com> (cherry picked from commit e2e2747f40c4b9e23dba38ea656d4c082e83a794)
-rw-r--r--mi/miarc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mi/miarc.c b/mi/miarc.c
index 5fd1a678a..ddcbff78a 100644
--- a/mi/miarc.c
+++ b/mi/miarc.c
@@ -1524,7 +1524,7 @@ miRoundCap(
# define Dsin(d) ((d) == 0.0 ? 0.0 : ((d) == 90.0 ? 1.0 : sin(d*M_PI/180.0)))
# define Dcos(d) ((d) == 0.0 ? 1.0 : ((d) == 90.0 ? 0.0 : cos(d*M_PI/180.0)))
-# define mod(a,b) ((a) >= 0 ? (a) % (b) : (b) - (-a) % (b))
+# define mod(a,b) ((a) >= 0 ? (a) % (b) : (b) - (-(a)) % (b))
static double
miDcos (double a)