diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2024-11-01 16:35:03 +0100 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2024-11-01 16:35:03 +0100 |
| commit | 9d708a1b5a00b49463f284a19c23277f787c55df (patch) | |
| tree | f1d11529b7cf6c4e3de45cad2b18665fe7dda1aa /test | |
| parent | 818e2b77d141574a8ef8cf50bbe33241206a2ee9 (diff) | |
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.
Diffstat (limited to 'test')
| -rw-r--r-- | test/fullscreen.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/fullscreen.cxx b/test/fullscreen.cxx index 00a15da72..65c25036a 100644 --- a/test/fullscreen.cxx +++ b/test/fullscreen.cxx @@ -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()); } |
