From e2a72352c5417c795c16c895d1f0bc22be116eb4 Mon Sep 17 00:00:00 2001 From: David Capello Date: Fri, 12 Feb 2016 18:53:59 -0300 Subject: [PATCH] Fix minor cast int <-> double issues in src/app/color.cpp --- src/app/color.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/color.cpp b/src/app/color.cpp index 993642cf6..6f2b3d5f3 100644 --- a/src/app/color.cpp +++ b/src/app/color.cpp @@ -139,11 +139,11 @@ Color Color::fromString(const std::string& str) } if (str[0] == 'r') - color = Color::fromRgb(table[0], table[1], table[2], int(table[3])); + color = Color::fromRgb(int(table[0]), int(table[1]), int(table[2]), int(table[3])); else if (str[0] == 'h') color = Color::fromHsv(table[0], table[1], table[2], int(table[3])); else if (str[0] == 'g') - color = Color::fromGray(table[0], (c >= 2 ? int(table[1]): 255)); + color = Color::fromGray(int(table[0]), (c >= 2 ? int(table[1]): 255)); } else if (str.find("index{") == 0) { color = Color::fromIndex(std::strtol(str.c_str()+6, NULL, 10));