From c0bd433929477455b0aa74222be5375ec6123502 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Fri, 2 Oct 2020 22:08:16 +0200 Subject: Norming p_subst_alias --- src/p_subst_alias.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/p_subst_alias.c b/src/p_subst_alias.c index ff3f3dc..289a951 100644 --- a/src/p_subst_alias.c +++ b/src/p_subst_alias.c @@ -74,7 +74,7 @@ static void p_reset_used(size_t used[], t_bool reset, size_t *i) while (*i < 4096) { used[*i] = 0; - *i++; + *i += 1; } *i = 0; } @@ -88,7 +88,7 @@ size_t p_subst_alias(char word[], t_bool reset, t_msh *msh) char tmp[255]; size_t locat[2]; char *ptr; - ssize_t j; + int64_t j; size_t usedcmp; t_bool good; @@ -110,7 +110,7 @@ size_t p_subst_alias(char word[], t_bool reset, t_msh *msh) { good = TRUE; j = -1; - while (++j < i) + while (++j < (int64_t)i) good = (used[j] == usedcmp) ? (FALSE) : (good); if (good == TRUE) { -- cgit v1.2.3