mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
chore(fixup): bfredl size_t
This commit is contained in:
parent
6fb9c278d8
commit
3fccdeb326
@ -4370,7 +4370,7 @@ static char_u *replace_makeprg(exarg_T *eap, char_u *p, char_u **cmdlinep)
|
|||||||
++i;
|
++i;
|
||||||
}
|
}
|
||||||
len = (int)STRLEN(p);
|
len = (int)STRLEN(p);
|
||||||
new_cmdline = xmalloc(STRLEN(program) + (long)i * (len - 2) + 1);
|
new_cmdline = xmalloc(STRLEN(program) + (size_t)i * (len - 2) + 1);
|
||||||
ptr = new_cmdline;
|
ptr = new_cmdline;
|
||||||
while ((pos = (char_u *)strstr((char *)program, "$*")) != NULL) {
|
while ((pos = (char_u *)strstr((char *)program, "$*")) != NULL) {
|
||||||
i = (int)(pos - program);
|
i = (int)(pos - program);
|
||||||
|
@ -269,7 +269,7 @@ bhdr_T *mf_new(memfile_T *mfp, bool negative, unsigned page_count)
|
|||||||
|
|
||||||
// Init the data to all zero, to avoid reading uninitialized data.
|
// Init the data to all zero, to avoid reading uninitialized data.
|
||||||
// This also avoids that the passwd file ends up in the swap file!
|
// This also avoids that the passwd file ends up in the swap file!
|
||||||
(void)memset(hp->bh_data, 0, (unsigned long)mfp->mf_page_size * page_count);
|
(void)memset(hp->bh_data, 0, (size_t)mfp->mf_page_size * page_count);
|
||||||
|
|
||||||
return hp;
|
return hp;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user