Fixed how sign is applied for fractions

master
Mikko Mononen 2017-07-01 18:07:55 +03:00
parent 9b51689812
commit 47697e1414
1 changed files with 1 additions and 1 deletions

View File

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