aboutsummaryrefslogtreecommitdiff
path: root/src/xdiff/xutils.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2021-09-19 13:13:44 +0800
committerzeertzjq <zeertzjq@outlook.com>2021-09-19 13:13:44 +0800
commitf4ce4c1677819472d1b094ef31b8db9c2549e55e (patch)
tree06a2af676c69cab0182e0389ce173b567c9cb790 /src/xdiff/xutils.c
parenta348c666a3ffd73bf7918c3904d0adc325c08465 (diff)
downloadrneovim-f4ce4c1677819472d1b094ef31b8db9c2549e55e.tar.gz
rneovim-f4ce4c1677819472d1b094ef31b8db9c2549e55e.tar.bz2
rneovim-f4ce4c1677819472d1b094ef31b8db9c2549e55e.zip
vim-patch:8.2.3437: compiler warnings for 32/64 bit usage
Problem: Compiler warnings for 32/64 bit usage. Solution: Add type casts. (Mike Williams, closes vim/vim#8870) https://github.com/vim/vim/commit/f5785cf0592626ec17676e814d3ba58f5123bcda
Diffstat (limited to 'src/xdiff/xutils.c')
-rw-r--r--src/xdiff/xutils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xdiff/xutils.c b/src/xdiff/xutils.c
index 5ef519155d..f13a854536 100644
--- a/src/xdiff/xutils.c
+++ b/src/xdiff/xutils.c
@@ -47,7 +47,7 @@ int xdl_emit_diffrec(char const *rec, long size, char const *pre, long psize,
mb[1].size = size;
if (size > 0 && rec[size - 1] != '\n') {
mb[2].ptr = (char *) "\n\\ No newline at end of file\n";
- mb[2].size = strlen(mb[2].ptr);
+ mb[2].size = (long)strlen(mb[2].ptr);
i++;
}
if (ecb->out_line(ecb->priv, mb, i) < 0) {