Mercurial > vim
diff src/channel.c @ 15508:69207f77754a v8.1.0762
patch 8.1.0762: compiler warning
commit https://github.com/vim/vim/commit/e40742526e6ea272c64ca393d7364e4023f4122c
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jan 17 14:31:14 2019 +0100
patch 8.1.0762: compiler warning
Problem: Compiler warning.
Solution: Add type cast. (Mike Williams)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 17 Jan 2019 14:45:11 +0100 |
parents | 55ccc2d353bd |
children | 3ef31ce9d9f9 |
line wrap: on
line diff
--- a/src/channel.c +++ b/src/channel.c @@ -4064,7 +4064,7 @@ ch_raw_common(typval_T *argvars, typval_ else { text = tv_get_string_buf(&argvars[1], buf); - len = STRLEN(text); + len = (int)STRLEN(text); } channel = send_common(argvars, text, len, 0, eval, &opt, eval ? "ch_evalraw" : "ch_sendraw", &part_read);