static void set_cmdspos_cursor(void);
static void correct_cmdspos(int idx, int cells);
static void dealloc_cmdbuff(void);
-static void alloc_cmdbuff(int len);
+static void alloc_cmdbuff(size_t len);
static void draw_cmdline(int start, int len);
static void save_cmdline(cmdline_info_T *ccp);
static void restore_cmdline(cmdline_info_T *ccp);
}
if (i == 0)
{
- alloc_cmdbuff((int)len);
+ alloc_cmdbuff(len);
if (ccline.cmdbuff == NULL)
{
res = GOTO_NORMAL_MODE;
}
else
{
- alloc_cmdbuff((int)plen);
+ alloc_cmdbuff(plen);
if (ccline.cmdbuff == NULL)
{
res = GOTO_NORMAL_MODE;
* Assigns the new buffer to ccline.cmdbuff and ccline.cmdbufflen.
*/
static void
-alloc_cmdbuff(int len)
+alloc_cmdbuff(size_t len)
{
/*
* give some extra space to avoid having to allocate all the time
len += 20;
ccline.cmdbuff = alloc(len); // caller should check for out-of-memory
- ccline.cmdbufflen = len;
+ ccline.cmdbufflen = (int)len;
}
/*
size_t textproplen = curbuf->b_ml.ml_line_len - oldtextlen;
// Need to copy over text properties, stored after the text.
- newline = alloc(len + (int)textproplen);
+ newline = alloc(len + textproplen);
if (newline != NULL)
{
mch_memmove(newline, line, len);
vim_free(wp->w_popup_title);
len = STRLEN(wp->w_buffer->b_fname) + 3;
- wp->w_popup_title = alloc((int)len);
+ wp->w_popup_title = alloc(len);
if (wp->w_popup_title != NULL)
vim_snprintf((char *)wp->w_popup_title, len, " %s ",
wp->w_buffer->b_fname);
escaped_filename = vim_strsave_escaped(filename, escape_chars);
if (escaped_filename == NULL)
return FALSE;
- mksession_cmdline = alloc(10 + (int)STRLEN(escaped_filename) + 1);
+ mksession_cmdline = alloc(10 + STRLEN(escaped_filename) + 1);
if (mksession_cmdline == NULL)
{
vim_free(escaped_filename);
int i;
size_t off;
- textline = alloc(width + (int)STRLEN(fname) + 1);
+ textline = alloc(width + STRLEN(fname) + 1);
if (textline == NULL)
return NULL;
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 283,
/**/
282,
/**/
char_u *s2 = tv2->vval.v_string;
size_t len1 = STRLEN(s1);
- tv1->vval.v_string = alloc((int)(len1 + STRLEN(s2) + 1));
+ tv1->vval.v_string = alloc(len1 + STRLEN(s2) + 1);
if (tv1->vval.v_string == NULL)
{
clear_ppconst(ppconst);