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:
parent
818e2b77d1
commit
9d708a1b5a
@ -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());
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user