From 0bf6683136e4254a848d0f9e3ad60682e36e18f5 Mon Sep 17 00:00:00 2001 From: tomoron Date: Wed, 20 Aug 2025 17:11:39 +0200 Subject: [PATCH] wrong function used in float parsing --- srcs/parsing.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/srcs/parsing.c b/srcs/parsing.c index 938ce89..65f6f7a 100644 --- a/srcs/parsing.c +++ b/srcs/parsing.c @@ -6,7 +6,7 @@ /* By: tomoron +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/04/26 17:01:53 by tomoron #+# #+# */ -/* Updated: 2025/08/20 17:07:58 by tomoron ### ########.fr */ +/* Updated: 2025/08/20 17:10:02 by tomoron ### ########.fr */ /* */ /* ************************************************************************** */ #include "includes/ft_ping.h" @@ -37,7 +37,7 @@ double get_set_float(char *arg, t_settings *set) float value; char *end; - value = strtol(arg, &end, 10); + value = strtof(arg, &end); if(*end) { fprintf(stderr, "%s: invalid value (`%s' near `%s')\n", set->name, arg, end);