diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-10-01 08:30:18 -0700 |
---|---|---|
committer | Arnaud Fontaine <arnaud.fontaine@nexedi.com> | 2011-10-04 11:44:36 +0900 |
commit | f9c50b27d9f0aff498150932e98bbac37789ff2c (patch) | |
tree | ecf15979fc14e5e8e702828a764e77ba1d412278 | |
parent | 79e2b469eb595b6a840a96c0e1d957f2346a0b3a (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.c | 2 |
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 |