diff options
author | darealshinji <djcj@gmx.de> | 2019-03-05 19:19:28 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-05 19:19:28 +0300 |
commit | 8c360e4214c11ba6a6f303696bc2ac4bf70e226e (patch) | |
tree | a9a63ee9573521ce1e59167212af732918f45e10 /src | |
parent | c1f6e209c16b18b46aa9f45d7e619acf42c29726 (diff) |
don't cast long long -> double -> long long
Diffstat (limited to 'src')
-rw-r--r-- | src/nanosvg.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nanosvg.h b/src/nanosvg.h index 8c8b061..709174a 100644 --- a/src/nanosvg.h +++ b/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; |