From c0fb27cc2f26231ec31cb6f822209f2ed1f0e470 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Thu, 1 Sep 2016 12:41:19 +0000 Subject: [PATCH] Fix compiler warning (STR #3081). Note to devs: this was already fixed in branch-1.3-porting. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11914 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/fl_gleam.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fl_gleam.cxx b/src/fl_gleam.cxx index 39d384adf..087f4baf4 100644 --- a/src/fl_gleam.cxx +++ b/src/fl_gleam.cxx @@ -39,8 +39,8 @@ static void shade_rect_top_bottom(int x, int y, int w, int h, Fl_Color fg1, Fl_C int h_bottom = ((h/6) < (15) ? (h/6) : (15)); // min(h/6,15); int h_flat = h-(h_top+h_bottom); int j = 0; - float step_size_top = h_top>1?(0.999/(float)(h_top)):1; - float step_size_bottom = h_bottom>1?(0.999/(float)(h_bottom)):1; + float step_size_top = h_top>1?(0.999f/(float)(h_top)):1; + float step_size_bottom = h_bottom>1?(0.999f/(float)(h_bottom)):1; // This loop generates the gradient at the top of the widget for (float k = 1; k >= 0; k -= step_size_top){ gleam_color(fl_color_average(fl_color_average(fg1, fg2, th), fg1, k));