From 8c360e4214c11ba6a6f303696bc2ac4bf70e226e Mon Sep 17 00:00:00 2001 From: darealshinji Date: Tue, 5 Mar 2019 17:19:28 +0100 Subject: [PATCH] don't cast long long -> double -> long long --- src/nanosvg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;