From 4c1b826798d0060170e60c5b34de73f662a14ff9 Mon Sep 17 00:00:00 2001 From: Charles Ofria Date: Thu, 14 Feb 2019 23:57:43 -0500 Subject: [PATCH] Fixed type warning in color_map.h --- source/web/color_map.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/web/color_map.h b/source/web/color_map.h index 178a1ff910..846da23853 100644 --- a/source/web/color_map.h +++ b/source/web/color_map.h @@ -100,9 +100,9 @@ namespace emp { bs = x; } - int r = (rs + m) * 255; - int g = (gs + m) * 255; - int b = (bs + m) * 255; + int r = (int) ((rs + m) * 255); + int g = (int) ((gs + m) * 255); + int b = (int) ((bs + m) * 255); return ColorRGB(r, g, b); }