don't cast long long -> double -> long long

This commit is contained in:
darealshinji 2019-03-05 17:19:28 +01:00 committed by GitHub
parent c1f6e209c1
commit 8c360e4214
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1102,7 +1102,7 @@ static double nsvg__atof(const char* s)
// Parse integer part // Parse integer part
if (nsvg__isdigit(*cur)) { if (nsvg__isdigit(*cur)) {
// Parse digit sequence // Parse digit sequence
intPart = (double)strtoll(cur, &end, 10); intPart = strtoll(cur, &end, 10);
if (cur != end) { if (cur != end) {
res = (double)intPart; res = (double)intPart;
hasIntPart = 1; hasIntPart = 1;