summaryrefslogtreecommitdiff
path: root/src/AllCmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/AllCmap.c')
-rw-r--r--src/AllCmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/AllCmap.c b/src/AllCmap.c
index a974ce0..07edf38 100644
--- a/src/AllCmap.c
+++ b/src/AllCmap.c
@@ -110,7 +110,7 @@ XmuAllStandardColormaps(Display *dpy)
v2 = getDeepestVisual(PseudoColor, vinfo, nvisuals);
if (v2 &&
- (!v1 || (v2->colormap_size >=
+ (!v1 || (v2->colormap_size >= (long)
((v1->red_mask | v1->green_mask | v1->blue_mask) + 1))))
status = XmuVisualStandardColormaps(dpy, scr, v2->visualid,
(unsigned) v2->depth, 1, 1);