summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2023-04-10 15:58:05 +0200
committerAlbrecht Schlosser <albrechts.fltk@online.de>2023-04-10 15:58:05 +0200
commit027e7386555f8b1ce98ff35bd6edc27595c97e3e (patch)
tree5792380384d14d96d460edade77e44839575d29a /src
parent100786222c12eef7c72643e6855cec11baa35678 (diff)
Fix compiler warning [-Wsign-compare]
Diffstat (limited to 'src')
-rw-r--r--src/drivers/Wayland/Fl_Wayland_Graphics_Driver.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/Wayland/Fl_Wayland_Graphics_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Graphics_Driver.cxx
index 1e0f87cf9..d9eedb317 100644
--- a/src/drivers/Wayland/Fl_Wayland_Graphics_Driver.cxx
+++ b/src/drivers/Wayland/Fl_Wayland_Graphics_Driver.cxx
@@ -107,7 +107,7 @@ static void copy_region(struct wld_window *window, struct flCairoRegion *r) {
int offset = top * buffer->stride + 4 * left;
int W4 = 4 * width;
for (int l = 0; l < height; l++) {
- if (offset + W4 >= buffer->data_size) {
+ if (offset + W4 >= (int)buffer->data_size) {
W4 = buffer->data_size - offset;
if (W4 <= 0) break;
}