summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-05-22 12:47:10 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-05-22 12:47:10 -0700
commiteaae07c9c9690228e16ab8dc537a8a0c2ae175bf (patch)
tree35a6cc78fec566173be7de122bdcd8c3abf351b4
parent1025ca2d9a00bc60639689fba177d186dace5483 (diff)
Make DEPTH_MASK generate unsigned ints
Clears Sun compiler warning: "Xrender.c", line 127: warning: integer overflow detected: op "<<" since 1 << 31 overflows a signed 32-bit int. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--src/Xrender.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Xrender.c b/src/Xrender.c
index c763076..fce16ab 100644
--- a/src/Xrender.c
+++ b/src/Xrender.c
@@ -70,7 +70,7 @@ XRenderExtFindDisplay (XRenderExtInfo *extinfo,
* any screen, tell the application that Render is not present.
*/
-#define DEPTH_MASK(d) (1 << ((d) - 1))
+#define DEPTH_MASK(d) (1U << ((d) - 1))
/*
* Render requires support for depth 1, 4, 8, 24 and 32 pixmaps