Mercurial > vim
diff src/xdiff/xemit.c @ 14840:9c94cfe5dd31 v8.1.0432
patch 8.1.0432: compiler warning for signed/unsigned
commit https://github.com/vim/vim/commit/45c5c86e636edef8ed08d47bf8724efc05108030
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Sep 25 18:59:21 2018 +0200
patch 8.1.0432: compiler warning for signed/unsigned
Problem: Compiler warning for signed/unsigned.
Solution: Add type cast. (Mike Williams)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 25 Sep 2018 19:00:06 +0200 |
parents | 0e336b7d2090 |
children | 3be01cf0a632 |
line wrap: on
line diff
--- a/src/xdiff/xemit.c +++ b/src/xdiff/xemit.c @@ -31,7 +31,7 @@ static long xdl_get_rec(xdfile_t *xdf, l 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);