changed from float to double to avoid losing precision (and avoid a warning)

This commit is contained in:
Miha Lunar 2014-09-25 20:16:37 +02:00
parent e1c9a791f2
commit e54d5b4451

View File

@ -479,7 +479,7 @@ static int nsvg__ptInBounds(float* pt, float* bounds)
static double nsvg__evalBezier(double t, double p0, double p1, double p2, double p3)
{
float it = 1.0-t;
double it = 1.0-t;
return it*it*it*p0 + 3.0*it*it*t*p1 + 3.0*it*t*t*p2 + t*t*t*p3;
}