diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2019-05-06 16:49:32 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2019-05-06 18:04:17 -0400 |
commit | bb511a50f14c69deaf67ef411aeb6eea03eca975 (patch) | |
tree | 9ce0d0c769862f4656793edb5507b63093950a63 /src | |
parent | 86d7036808a6958f5937a81044262afe2658e6ec (diff) |
add casts to fix compiler warnings
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'src')
-rw-r--r-- | src/Event.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Event.c b/src/Event.c index b8487fc..8feb2f6 100644 --- a/src/Event.c +++ b/src/Event.c @@ -1067,10 +1067,10 @@ static void AddExposureToRectangularRegion( XClipBox(region, &bbox); merged.x = MIN(rect.x, bbox.x); merged.y = MIN(rect.y, bbox.y); - merged.width = MAX(rect.x + rect.width, - bbox.x + bbox.width) - merged.x; - merged.height = MAX(rect.y + rect.height, - bbox.y + bbox.height) - merged.y; + merged.width = (unsigned short)(MAX(rect.x + rect.width, + bbox.x + bbox.width) - merged.x); + merged.height = (unsigned short)(MAX(rect.y + rect.height, + bbox.y + bbox.height) - merged.y); XUnionRectWithRegion(&merged, region, region); } } |