summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mkfontscale.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mkfontscale.c b/mkfontscale.c
index f9333ce..21fccff 100644
--- a/mkfontscale.c
+++ b/mkfontscale.c
@@ -107,7 +107,7 @@ ListPtr makeXLFD(char *filename, FT_Face face, int);
static int readEncodings(ListPtr *encodingsToDo, char *dirname);
static FT_Library ft_library;
-static float bigEncodingFuzz = 0.02;
+static float bigEncodingFuzz = 0.02f;
static int relative;
static int doScalable;
@@ -259,7 +259,7 @@ main(int argc, char **argv)
if (argn >= argc - 1) {
missing_arg("-f");
}
- bigEncodingFuzz = atof(argv[argn + 1]) / 100.0;
+ bigEncodingFuzz = strtof(argv[argn + 1], NULL) / 100.0f;
argn += 2;
}
else if (strcmp(argv[argn], "-v") == 0) {