Browse Source

fix float -> int warning

v1.x
Tj Holowaychuk 14 years ago
parent
commit
ff10bb0feb
  1. 2
      src/color.cc

2
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;
}

Loading…
Cancel
Save