From ff1301afc3808887b4cf8fde9a4d24638120c6c5 Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Mon, 9 Mar 2020 17:16:31 +0100 Subject: Perf --- src/ft_get_darkness.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ft_get_darkness.c') diff --git a/src/ft_get_darkness.c b/src/ft_get_darkness.c index 7f1bc00..14a9f00 100644 --- a/src/ft_get_darkness.c +++ b/src/ft_get_darkness.c @@ -39,7 +39,7 @@ int8_t } if (ft_checkdigit(words[1], clist)) return (-1); - if (ft_atoi(words[1]) < 0 || ft_atoi(words[1]) > 10) + if (ft_atoi(words[1]) < 0 || ft_atoi(words[1]) > 20) { ft_sprintf(clist->errmsg, FT_ERR_SH_RANGE); return (-1); -- cgit v1.2.3