From ff10bb0febd3f94ae37ed73d7bdc267b32eeb67b Mon Sep 17 00:00:00 2001 From: Tj Holowaychuk Date: Fri, 26 Nov 2010 09:50:48 -0800 Subject: [PATCH] fix float -> int warning --- src/color.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/color.cc b/src/color.cc index 55d6b4c..66a9274 100644 --- a/src/color.cc +++ b/src/color.cc @@ -349,7 +349,7 @@ rgba_from_rgba_string(const char *str, short *ok) { } } } - return *ok = 1, rgba_from_rgba(r, g, b, a * 255); + return *ok = 1, rgba_from_rgba(r, g, b, (int) (a * 255)); } return *ok = 0; }