From 47697e1414dd2aaf59d4df61edb70f36058069f1 Mon Sep 17 00:00:00 2001 From: Mikko Mononen Date: Sat, 1 Jul 2017 18:07:55 +0300 Subject: [PATCH] Fixed how sign is applied for fractions --- src/nanosvg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nanosvg.h b/src/nanosvg.h index 8e12904..2321c56 100644 --- a/src/nanosvg.h +++ b/src/nanosvg.h @@ -1110,7 +1110,7 @@ static double nsvg__atof(const char* s) // Parse digit sequence fracPart = strtoll(cur, &end, 10); if (cur != end) { - res += (double)fracPart / pow(10.0, (double)(end - cur)) * sign; + res += (double)fracPart / pow(10.0, (double)(end - cur)); hasFracPart = 1; cur = end; }