summaryrefslogtreecommitdiff
path: root/source/svg/svg-parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/svg/svg-parse.c')
-rw-r--r--source/svg/svg-parse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/svg/svg-parse.c b/source/svg/svg-parse.c
index 00151dd4..a400e5a5 100644
--- a/source/svg/svg-parse.c
+++ b/source/svg/svg-parse.c
@@ -69,7 +69,7 @@ svg_parse_length(const char *str, float percent, float font_size)
char *end;
float val;
- val = (float)fz_strtod(str, &end);
+ val = fz_strtof(str, &end);
if (end == str)
return 0; /* failed */
@@ -100,7 +100,7 @@ svg_parse_angle(const char *str)
char *end;
float val;
- val = (float)fz_strtod(str, &end);
+ val = fz_strtof(str, &end);
if (end == str)
return 0; /* failed */