Mercurial > vim
comparison src/channel.c @ 12246:337690672bda v8.0.1003
patch 8.0.1003: 64 bit compiler warning
commit https://github.com/vim/vim/commit/e85928a324ab78912ea0f0ceb2dcd9fd686dc3b0
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Aug 27 13:10:10 2017 +0200
patch 8.0.1003: 64 bit compiler warning
Problem: 64 bit compiler warning
Solution: Add type cast. (Mike Williams)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 27 Aug 2017 13:15:05 +0200 |
parents | d0b039e2ed56 |
children | ac8b2f9c1409 |
comparison
equal
deleted
inserted
replaced
12245:1ebf27505a95 | 12246:337690672bda |
---|---|
4888 char_u *s, *d; | 4888 char_u *s, *d; |
4889 char_u *escaped_arg; | 4889 char_u *escaped_arg; |
4890 int has_spaces = FALSE; | 4890 int has_spaces = FALSE; |
4891 | 4891 |
4892 /* First count the number of extra bytes required. */ | 4892 /* First count the number of extra bytes required. */ |
4893 slen = STRLEN(arg); | 4893 slen = (int)STRLEN(arg); |
4894 dlen = slen; | 4894 dlen = slen; |
4895 for (s = arg; *s != NUL; MB_PTR_ADV(s)) | 4895 for (s = arg; *s != NUL; MB_PTR_ADV(s)) |
4896 { | 4896 { |
4897 if (*s == '"' || *s == '\\') | 4897 if (*s == '"' || *s == '\\') |
4898 ++dlen; | 4898 ++dlen; |