Skip to content

Commit

Permalink
Merge pull request memononen#152 from darealshinji/patch-2
Browse files Browse the repository at this point in the history
don't cast long long -> double -> long long
  • Loading branch information
memononen authored Apr 5, 2019
2 parents 7cd94e3 + 8c360e4 commit 3e2a632
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nanosvg.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3e2a632

Please sign in to comment.