summaryrefslogtreecommitdiff
path: root/src/terminal.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-04-10 18:26:27 +0200
committerBram Moolenaar <Bram@vim.org>2018-04-10 18:26:27 +0200
commitd6b4f2dd760b425c63c359b9ff299f73448f8854 (patch)
tree74b3513395af086f084edc7c45eeb2773b631c3a /src/terminal.c
parentd088240b96bc8b2bdba9242dcb9e3d36f1e16c48 (diff)
downloadvim-git-d6b4f2dd760b425c63c359b9ff299f73448f8854.tar.gz
patch 8.0.1687: 64 bit compiler warningsv8.0.1687
Problem: 64 bit compiler warnings. Solution: change type, add type cast. (Mike Williams)
Diffstat (limited to 'src/terminal.c')
-rw-r--r--src/terminal.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/terminal.c b/src/terminal.c
index 785994138..9a62edd67 100644
--- a/src/terminal.c
+++ b/src/terminal.c
@@ -3400,7 +3400,7 @@ static VTermParserCallbacks parser_fallbacks = {
static void *
vterm_malloc(size_t size, void *data UNUSED)
{
- return alloc_clear(size);
+ return alloc_clear((unsigned) size);
}
static void
@@ -4016,9 +4016,9 @@ get_separator(int text_width, char_u *fname)
int fname_size;
char_u *p = fname;
int i;
- int off;
+ size_t off;
- textline = alloc(width + STRLEN(fname) + 1);
+ textline = alloc(width + (int)STRLEN(fname) + 1);
if (textline == NULL)
return NULL;