diff options
author | Matthias Hopf <mhopf@suse.de> | 2010-05-07 18:46:30 +0200 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2010-05-07 12:22:02 -0700 |
commit | e2e2747f40c4b9e23dba38ea656d4c082e83a794 (patch) | |
tree | 169d325eb8adc3ddf86c6e8d948f8e07ff956da7 /mi | |
parent | 626f97688a89dbc5da80390d822d21b1a737de0e (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>
Diffstat (limited to 'mi')
-rw-r--r-- | mi/miarc.c | 2 |
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) |