diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2021-11-16 21:21:23 +0100 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2021-11-16 21:25:54 +0100 |
| commit | 55f3df268c0f6e2fabc055bef51c195e51dd8716 (patch) | |
| tree | b76fce4b8d46a0234cafd9999027f16031d16a0e /examples/progress-simple.cxx | |
| parent | 5810edaf84707563b452bd0e4b6120909b8ef3ea (diff) | |
Fix remaining VS compiler warnings in example programs
Diffstat (limited to 'examples/progress-simple.cxx')
| -rw-r--r-- | examples/progress-simple.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/progress-simple.cxx b/examples/progress-simple.cxx index e0536f417..4631e4e0d 100644 --- a/examples/progress-simple.cxx +++ b/examples/progress-simple.cxx @@ -48,7 +48,7 @@ void butt_cb(Fl_Widget *butt, void *data) { w->end(); // end adding to window // Computation loop.. for ( int t=1; t<=500; t++ ) { - progress->value(t/500.0); // update progress bar with 0.0 ~ 1.0 value + progress->value(float(t/500.0)); // update progress bar with 0.0 ~ 1.0 value char percent[10]; sprintf(percent, "%d%%", int((t/500.0)*100.0)); progress->label(percent); // update progress bar's label |
