summaryrefslogtreecommitdiff
path: root/src/xdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-09-25 18:59:21 +0200
committerBram Moolenaar <Bram@vim.org>2018-09-25 18:59:21 +0200
commit45c5c86e636edef8ed08d47bf8724efc05108030 (patch)
tree103358f721eb388467508e595bd367358b73ba64 /src/xdiff
parent6dae96ef7ad56191c13c4993f04cbfd450d91ad2 (diff)
downloadvim-git-45c5c86e636edef8ed08d47bf8724efc05108030.tar.gz
patch 8.1.0432: compiler warning for signed/unsignedv8.1.0432
Problem: Compiler warning for signed/unsigned. Solution: Add type cast. (Mike Williams)
Diffstat (limited to 'src/xdiff')
-rw-r--r--src/xdiff/xemit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xdiff/xemit.c b/src/xdiff/xemit.c
index dae7f8043..d8a6f1ed3 100644
--- a/src/xdiff/xemit.c
+++ b/src/xdiff/xemit.c
@@ -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);