From 71913a497ff054eda9293f6648d61cdb33b43b71 Mon Sep 17 00:00:00 2001 From: Uwe Date: Sat, 29 Jan 2022 19:07:03 +0100 Subject: [PATCH] [App] fix compiler warning warning C4305: 'argument': truncation from 'double' to 'float' --- src/App/ColorModel.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/App/ColorModel.h b/src/App/ColorModel.h index b0b9efff61..998b1154cb 100644 --- a/src/App/ColorModel.h +++ b/src/App/ColorModel.h @@ -142,9 +142,9 @@ public: ColorModelBlueWhiteRed () : ColorModel(5) { colors[0] = Color(0, 0, 1); - colors[1] = Color(85.0/255, 170.0/255, 1); + colors[1] = Color(float(85.0 / 255), float(170.0 / 255), 1); colors[2] = Color(1, 1, 1); - colors[3] = Color(1, 85.0/255, 0); + colors[3] = Color(1, float(85.0 / 255), 0); colors[4] = Color(1, 0, 0); } }; @@ -155,7 +155,7 @@ public: ColorModelBlueWhite () : ColorModel(3) { colors[0] = Color(0, 0, 1); - colors[1] = Color(85.0/255, 170.0/255, 1); + colors[1] = Color(float(85.0 / 255), float(170.0 / 255), 1); colors[2] = Color(1, 1, 1); } }; @@ -166,7 +166,7 @@ public: ColorModelWhiteRed () : ColorModel(3) { colors[0] = Color(1, 1, 1); - colors[1] = Color(1, 85.0/255, 0); + colors[1] = Color(1, float(85.0 / 255), 0); colors[2] = Color(0, 1, 0); } };