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>
This commit is contained in:
parent
626f97688a
commit
e2e2747f40
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user