From c63ee0defff25db4612e9114d847b5045948e366 Mon Sep 17 00:00:00 2001 From: Dominik Kaiser Date: Thu, 7 Mar 2024 16:51:56 +0100 Subject: Add stuff, fix stuff and whatever --- ft_strncmp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ft_strncmp.c') diff --git a/ft_strncmp.c b/ft_strncmp.c index 2d54ec5..af24b2a 100644 --- a/ft_strncmp.c +++ b/ft_strncmp.c @@ -6,7 +6,7 @@ /* By: dkaiser 0 && (*s1 || *s2)) { - result = *s1 - *s2; + result = (unsigned char)*s1 - (unsigned char)*s2; if (*s1) s1++; if (*s2) -- cgit v1.2.3