diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-09-13 16:28:37 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-09-13 16:28:37 -0700 |
commit | 7185a8a484de41c878149e23848c903893936e14 (patch) | |
tree | 34c562e0536a4a332fc9f2bbe8a6fe35a71d87ef /src/StdCmap.c | |
parent | 7b63db9adf687e360a1e348aabbbc16265104fc2 (diff) | |
download | xorg-lib-libXmu-7185a8a484de41c878149e23848c903893936e14.tar.gz |
Handle -Wsign-compare warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/StdCmap.c')
-rw-r--r-- | src/StdCmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/StdCmap.c b/src/StdCmap.c index ccc822e..4da007b 100644 --- a/src/StdCmap.c +++ b/src/StdCmap.c @@ -190,11 +190,11 @@ valid_args(XVisualInfo *vinfo, unsigned long red_max, unsigned long green_max, return 0; } else if (property == XA_RGB_GRAY_MAP) { ncolors = red_max + green_max + blue_max + 1; - if (ncolors > vinfo->colormap_size) + if (ncolors > (unsigned long) vinfo->colormap_size) return 0; } else { ncolors = (red_max + 1) * (green_max + 1) * (blue_max + 1); - if (ncolors > vinfo->colormap_size) + if (ncolors > (unsigned long) vinfo->colormap_size) return 0; } |