From e54d5b44519146a5f78819ce9ee6e16f9aecf46c Mon Sep 17 00:00:00 2001 From: Miha Lunar Date: Thu, 25 Sep 2014 20:16:37 +0200 Subject: [PATCH] changed from float to double to avoid losing precision (and avoid a warning) --- src/nanosvg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nanosvg.h b/src/nanosvg.h index 5b4345e..4ba0b8e 100644 --- a/src/nanosvg.h +++ b/src/nanosvg.h @@ -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; }