[PATCH] Fix mod() definition.
Matt Turner
mattst88 at gmail.com
Fri May 7 10:15:12 PDT 2010
On Fri, May 7, 2010 at 12:46 PM, Matthias Hopf <mhopf at suse.de> wrote:
> Presumably no implications, especially security-wise.
>
> Signed-off-by: Matthias Hopf <mhopf at suse.de>
> ---
> mi/miarc.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/mi/miarc.c b/mi/miarc.c
> index 5fd1a67..ddcbff7 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)
> --
> 1.6.0.2
>
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel
>
Reviewed-by: Matt Turner <mattst88 at gmail.com>
More information about the xorg-devel
mailing list