summaryrefslogtreecommitdiff
path: root/source/x/x11/patch/xorg-server/xorg-server.fb.fbpict.c.mod.diff
blob: f8abdccb2ea2e3ecdee2904b7252929776e5ee0c (plain)
1
2
3
4
5
6
7
8
9
10
11
--- ./fb/fbpict.c.orig	2010-03-11 22:38:21.000000000 -0600
+++ ./fb/fbpict.c	2010-04-29 14:14:52.000000000 -0500
@@ -37,7 +37,7 @@
 #include "mipict.h"
 #include "fbpict.h"
 
-#define mod(a,b) ((b) == 1 ? 0 : (a) >= 0 ? (a) % (b) : (b) - (-a) % (b))
+#define mod(a,b) ((b) == 1 ? 0 : (a) >= 0 ? (a) % (b) : (b) - (-(a)) % (b))
 
 void
 fbWalkCompositeRegion (CARD8 op,