summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-10-01 08:30:18 -0700
committerArnaud Fontaine <arnaud.fontaine@nexedi.com>2011-10-04 11:44:36 +0900
commitf9c50b27d9f0aff498150932e98bbac37789ff2c (patch)
treeecf15979fc14e5e8e702828a764e77ba1d412278
parent79e2b469eb595b6a840a96c0e1d957f2346a0b3a (diff)
Mark DEPTH_MASK as Unsigned int
Clears Sun compiler warnings from trying to shift a signed int by 32 bits: "cache.c", line 103: warning: integer overflow detected: op "<<" "cache.c", line 103: warning: initializer will be sign-extended: -2139094903 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Peter Harris <pharris@opentext.com>
-rw-r--r--renderutil/cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/renderutil/cache.c b/renderutil/cache.c
index 96acbe8..c04fb50 100644
--- a/renderutil/cache.c
+++ b/renderutil/cache.c
@@ -48,7 +48,7 @@ static struct {
* 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