Fix compiler warning [-Wsign-compare]

Note: it is *unusual* (not FLTK style) that Fl_Window::border()
  returns 'unsigned int' instead of 'int'.

This should be investigated in FLTK 1.5 but maybe we can't change it:
  it's been so already in FLTK 1.3 and maybe earlier.
This commit is contained in:
Albrecht Schlosser 2024-11-01 16:35:03 +01:00
parent 818e2b77d1
commit 9d708a1b5a

View File

@ -1,6 +1,6 @@
//
//
// Copyright 1998-2023 by Bill Spitzak and others.
// Copyright 1998-2024 by Bill Spitzak and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
@ -179,7 +179,7 @@ void border_cb(Fl_Button *b, Fl_Window *w) {
int d = b->value();
w->border(d);
// border change may have been refused (e.g. with fullscreen window)
if (w->border() != d) b->value(w->border());
if ((int)w->border() != d) b->value(w->border());
}