summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2014-08-13 22:05:53 +0200
committerBram Moolenaar <Bram@vim.org>2014-08-13 22:05:53 +0200
commit9b8f021d93de3a2a2905d0e46b9f0b6dbb3e12f9 (patch)
treefa60f4b35b5721fe7932c21d4569c6ec51519da0 /src
parent2be795084f053928879d758443e199ef147cc07e (diff)
downloadvim-9b8f021d93de3a2a2905d0e46b9f0b6dbb3e12f9.zip
updated for version 7.4.404
Problem: Windows 64 bit compiler warnings. Solution: Add type casts. (Mike Williams)
Diffstat (limited to 'src')
-rw-r--r--src/crypt.c6
-rw-r--r--src/undo.c6
-rw-r--r--src/version.c2
3 files changed, 8 insertions, 6 deletions
diff --git a/src/crypt.c b/src/crypt.c
index 758ffb17b..c54e15c4a 100644
--- a/src/crypt.c
+++ b/src/crypt.c
@@ -397,13 +397,13 @@ crypt_encode_alloc(state, from, len, newptr)
return method->encode_buffer_fn(state, from, len, newptr);
if (len == 0)
/* Not buffering, just return EOF. */
- return len;
+ return (long)len;
- *newptr = alloc(len);
+ *newptr = alloc((long)len);
if (*newptr == NULL)
return -1;
method->encode_fn(state, from, len, *newptr);
- return len;
+ return (long)len;
}
/*
diff --git a/src/undo.c b/src/undo.c
index 8f50f0f0a..db6ea29ab 100644
--- a/src/undo.c
+++ b/src/undo.c
@@ -992,7 +992,7 @@ undo_write_bytes(bi, nr, len)
int bufi = 0;
for (i = len - 1; i >= 0; --i)
- buf[bufi++] = nr >> (i * 8);
+ buf[bufi++] = (char_u)(nr >> (i * 8));
return undo_write(bi, buf, (size_t)len);
}
@@ -1093,7 +1093,7 @@ undo_read(bi, buffer, size)
#ifdef FEAT_CRYPT
if (bi->bi_buffer != NULL)
{
- int size_todo = size;
+ int size_todo = (int)size;
char_u *p = buffer;
while (size_todo > 0)
@@ -1119,7 +1119,7 @@ undo_read(bi, buffer, size)
n = bi->bi_avail - bi->bi_used;
mch_memmove(p, bi->bi_buffer + bi->bi_used, n);
bi->bi_used += n;
- size_todo -= n;
+ size_todo -= (int)n;
p += n;
}
return OK;
diff --git a/src/version.c b/src/version.c
index b832539c0..42369f1d6 100644
--- a/src/version.c
+++ b/src/version.c
@@ -742,6 +742,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 404,
+/**/
403,
/**/
402,