From d3362a238e074f5762890992d28747c1d3907a82 Mon Sep 17 00:00:00 2001 From: Timothe FRIGNAC Date: Thu, 31 Aug 2017 15:14:31 +0200 Subject: [PATCH] changed strtod to strtol --- src/cfg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cfg.c b/src/cfg.c index ae71de91..5cf1fab9 100644 --- a/src/cfg.c +++ b/src/cfg.c @@ -236,7 +236,7 @@ static int parse_tiles_specification(const char* const arg, int32_t * const ntil static int parse_uint8(const char *numstr,uint8_t* number,int min, int max) { char *tail; - int d = strtod(numstr, &tail); + int d = strtol(numstr, &tail, 10); if (*tail || d < min || d > max){ fprintf(stderr, "Expected number between %d and %d\n", min, max); if(number)