[PATCH:xpr 3/3] Define pixel mask constant as unsigned long

Alan Coopersmith alan.coopersmith at oracle.com
Sat Jan 29 11:59:11 PST 2011


Clears Sun Studio cc warning of:
"x2jet.c", line 1681: warning: constant promoted to unsigned long

Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
---
 x2jet.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/x2jet.c b/x2jet.c
index 2811f0f..e71441b 100644
--- a/x2jet.c
+++ b/x2jet.c
@@ -1680,7 +1680,7 @@ void x2jet(
 
   read_xwd_data(in);
 
-  Z_pixel_mask = ~(0xFFFFFFFFL << xwd_header.pixmap_depth);
+  Z_pixel_mask = ~(0xFFFFFFFFUL << xwd_header.pixmap_depth);
 
   prepare_color_mapping(invert, paintjet, cutoff, out);
 
-- 
1.7.3.2



More information about the xorg-devel mailing list