Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/memononen/nanosvg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordarealshinji <djcj@gmx.de>2019-03-05 19:19:28 +0300
committerGitHub <noreply@github.com>2019-03-05 19:19:28 +0300
commit8c360e4214c11ba6a6f303696bc2ac4bf70e226e (patch)
treea9a63ee9573521ce1e59167212af732918f45e10 /src
parentc1f6e209c16b18b46aa9f45d7e619acf42c29726 (diff)
don't cast long long -> double -> long long
Diffstat (limited to 'src')
-rw-r--r--src/nanosvg.h2
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;