]> granicus.if.org Git - vim/commitdiff
updated for version 7.4.404 v7.4.404
authorBram Moolenaar <Bram@vim.org>
Wed, 13 Aug 2014 20:05:53 +0000 (22:05 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 13 Aug 2014 20:05:53 +0000 (22:05 +0200)
Problem:    Windows 64 bit compiler warnings.
Solution:   Add type casts. (Mike Williams)

src/crypt.c
src/undo.c
src/version.c

index 758ffb17b2813d0bbe2badad14e58f4a9b5ce106..c54e15c4afc2f8a5e13832c611215d60a40719f5 100644 (file)
@@ -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;
 }
 
 /*
index 8f50f0f0a8d960abaa2b6506e9db83b438f29452..db6ea29ab781990a53878107bfa73f33d3dec663 100644 (file)
@@ -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;
index b832539c0e420b12fe068b2e9cf65170501b71fc..42369f1d6ee0e354fada7471d8af41ebda9db569 100644 (file)
@@ -741,6 +741,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    404,
 /**/
     403,
 /**/