diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2023-03-09 17:47:11 +0100 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2023-03-09 17:47:51 +0100 |
| commit | 8b1ec4c531c9687e0d6285454747a0b66310c682 (patch) | |
| tree | 356b601df807a4e3b96cee9dcfff52a5aedf8cab /examples/animgifimage-resize.cxx | |
| parent | 25276320543170480711ee5e9c2e03d4fd7cc2d1 (diff) | |
Fix Visual Studio (MSVC) compiler warnings
Diffstat (limited to 'examples/animgifimage-resize.cxx')
| -rw-r--r-- | examples/animgifimage-resize.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/animgifimage-resize.cxx b/examples/animgifimage-resize.cxx index 1417255b3..a357e186c 100644 --- a/examples/animgifimage-resize.cxx +++ b/examples/animgifimage-resize.cxx @@ -175,7 +175,7 @@ int main(int argc, char *argv[]) { // set initial size to fit into window double ratio = orig->valid() ? (double)orig->w() / orig->h() : 1; int W = win.w() - 40; - int H = (double)W / ratio; + int H = int(W / ratio); printf("original size: %d x %d\n", orig->w(), orig->h()); win.size(W, H); Fl::add_handler(events); |
