]> granicus.if.org Git - vim/commitdiff
patch 8.1.0432: compiler warning for signed/unsigned v8.1.0432
authorBram Moolenaar <Bram@vim.org>
Tue, 25 Sep 2018 16:59:21 +0000 (18:59 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 25 Sep 2018 16:59:21 +0000 (18:59 +0200)
Problem:    Compiler warning for signed/unsigned.
Solution:   Add type cast. (Mike Williams)

src/version.c
src/xdiff/xemit.c

index 1d3dc436995c0adc3704c7473bc285a301c3542c..a009ef099d31bb615b815b83c44fa5aece95832d 100644 (file)
@@ -794,6 +794,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    432,
 /**/
     431,
 /**/
index dae7f80430a7b4df3de5f65f666f4d5ea546e9a2..d8a6f1ed387b351e153cceb01b3c94d8686be410 100644 (file)
@@ -31,7 +31,7 @@ static long xdl_get_rec(xdfile_t *xdf, long ri, char const **rec) {
 
 
 static int xdl_emit_record(xdfile_t *xdf, long ri, char const *pre, xdemitcb_t *ecb) {
-       long size, psize = strlen(pre);
+       long size, psize = (long)strlen(pre);
        char const *rec;
 
        size = xdl_get_rec(xdf, ri, &rec);