diff options
Diffstat (limited to '')
-rw-r--r-- | src/c_utils.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/c_utils.c b/src/c_utils.c index 043bd27..3198dff 100644 --- a/src/c_utils.c +++ b/src/c_utils.c @@ -50,7 +50,7 @@ char char *c_insert_char(char *str, char c, t_caps *tcaps) { - int32_t i; + int i; size_t j; size_t len; char *dst; @@ -60,9 +60,9 @@ char len = (ft_strlen(str) + 2); if (!(dst = (char*)malloc((len) * sizeof(char)))) return (NULL); - while (++i < (int32_t)len) + while (++i < (int)len) { - if (i == (int32_t)tcaps->cpos) + if (i == (int)tcaps->cpos) dst[i] = c; else { @@ -75,11 +75,11 @@ char } char - *c_delchar(char *str, uint16_t cpos) + *c_delchar(char *str, unsigned short cpos) { char *dst; - uint16_t i; - uint16_t j; + unsigned short i; + unsigned short j; j = 0; i = 0; @@ -99,11 +99,11 @@ char return (dst); } -static int16_t - c_redraw_next(size_t plen, uint32_t len, t_caps *tcaps) +static short + c_redraw_next(size_t plen, unsigned int len, t_caps *tcaps) { - uint32_t i; - uint32_t j; + unsigned int i; + unsigned int j; i = (tcaps->nlines == tcaps->lpos) ? 0 : tcaps->ws.ws_col * (tcaps->lpos - 1); @@ -129,11 +129,11 @@ static int16_t return (len); } -int16_t +short c_redraw_line(char *line, t_caps *tcaps, t_msh *msh) { - uint32_t i; - uint32_t j; + unsigned int i; + unsigned int j; tcaps->nlines = c_get_line_num(line, tcaps->cpos, ft_strlen(msh->ps[tcaps->psx]), tcaps); |