Browse Source

Use float constants to prevent double->float conversion warning

v1.x
Milan Gardian 10 years ago
parent
commit
ba4038b496
  1. 4
      src/color.cc

4
src/color.cc

@ -350,10 +350,10 @@ rgba_from_rgba_string(const char *str, short *ok) {
if ('0' == *str) ++str;
if ('.' == *str) {
++str;
float n = .1;
float n = .1f;
while (*str >= '0' && *str <= '9') {
a += (*str++ - '0') * n;
n *= .1;
n *= .1f;
}
}
}

Loading…
Cancel
Save