summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2022-05-30 09:23:37 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2022-06-03 15:52:57 -0400
commitb4ed18f1dc398ea39d9f76da556306fe02f26c97 (patch)
tree76638aa13841a901b4b29228ffb10b43ed00c8a1
parentf2583758d3e5c65f372387d1c67433856682c3fb (diff)
downloadxorg-lib-libXft-b4ed18f1dc398ea39d9f76da556306fe02f26c97.tar.gz
quiet compiler warning with cast
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
-rw-r--r--src/xftdraw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xftdraw.c b/src/xftdraw.c
index ef9dbc2..ca9286a 100644
--- a/src/xftdraw.c
+++ b/src/xftdraw.c
@@ -112,7 +112,7 @@ XftDrawBitsPerPixel (XftDraw *draw)
for (i = 0; i < nformats; i++)
{
- if (formats[i].depth == depth)
+ if ((unsigned) formats[i].depth == depth)
{
draw->bits_per_pixel = (unsigned)formats[i].bits_per_pixel;
break;