Browse Source
Merge pull request #152 from darealshinji/patch-2
don't cast long long -> double -> long long
pull/162/head
Mikko Mononen
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/nanosvg.h
|
|
@ -1102,7 +1102,7 @@ static double nsvg__atof(const char* s) |
|
|
|
// Parse integer part
|
|
|
|
if (nsvg__isdigit(*cur)) { |
|
|
|
// Parse digit sequence
|
|
|
|
intPart = (double)strtoll(cur, &end, 10); |
|
|
|
intPart = strtoll(cur, &end, 10); |
|
|
|
if (cur != end) { |
|
|
|
res = (double)intPart; |
|
|
|
hasIntPart = 1; |
|
|
|