From 55f3df268c0f6e2fabc055bef51c195e51dd8716 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Tue, 16 Nov 2021 21:21:23 +0100 Subject: Fix remaining VS compiler warnings in example programs --- examples/progress-simple.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/progress-simple.cxx') 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 -- cgit v1.2.3