From 7a82f44f796f7aa77f6aa3033aba471d86883521 Mon Sep 17 00:00:00 2001 From: ska42 Date: Sat, 27 Feb 2021 01:47:06 +0100 Subject: [PATCH] fix memchr compile --- tests/Part1_functions/ft_memchr/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Part1_functions/ft_memchr/main.c b/tests/Part1_functions/ft_memchr/main.c index 0a58e56..6f9cf3a 100755 --- a/tests/Part1_functions/ft_memchr/main.c +++ b/tests/Part1_functions/ft_memchr/main.c @@ -6,7 +6,7 @@ /* By: jtoty +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2017/02/28 12:01:40 by jtoty #+# #+# */ -/* Updated: 2019/11/14 02:05:36 by mle-floc ### ########.fr */ +/* Updated: 2021/02/27 01:45:19 by lmartin ### ########.fr */ /* */ /* ************************************************************************** */ @@ -78,7 +78,7 @@ int main(int argc, const char *argv[]) { int tab[7] = {-49, 49, 1, -1, 0, -2, 2}; - printf("%s", ft_memchr(tab, -1, 7)); + printf("%s", (char *)ft_memchr(tab, -1, 7)); } return (0); }