mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-25 04:50:05 +01:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue