diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-10-02 22:08:16 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-10-02 22:08:16 +0200 |
commit | c0bd433929477455b0aa74222be5375ec6123502 (patch) | |
tree | 166773a275506465c98d822def1de0ef5145c457 /src | |
parent | Norming p_subst_alias (diff) | |
download | 42-minishell-c0bd433929477455b0aa74222be5375ec6123502.tar.gz 42-minishell-c0bd433929477455b0aa74222be5375ec6123502.tar.bz2 42-minishell-c0bd433929477455b0aa74222be5375ec6123502.tar.xz 42-minishell-c0bd433929477455b0aa74222be5375ec6123502.tar.zst 42-minishell-c0bd433929477455b0aa74222be5375ec6123502.zip |
Norming p_subst_alias
Diffstat (limited to 'src')
-rw-r--r-- | src/p_subst_alias.c | 6 |
1 files 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) { |