Fixed how sign is applied for fractions
This commit is contained in:
parent
9b51689812
commit
47697e1414
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user