diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-10-07 19:36:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-07 19:36:01 +0200 |
commit | 512e0caae2e5ea507608588b645b723fc4b4f9c3 (patch) | |
tree | 8f36a6d3008dc5a1b4f71d1aa359886484a85cd4 /src/nvim/eval/encode.c | |
parent | f95e0ae92644d3695e9207ecfe8f5bea17594459 (diff) | |
parent | 2c84421de2e36b0e7e8d406d491d57c1b599fd30 (diff) | |
download | rneovim-512e0caae2e5ea507608588b645b723fc4b4f9c3.tar.gz rneovim-512e0caae2e5ea507608588b645b723fc4b4f9c3.tar.bz2 rneovim-512e0caae2e5ea507608588b645b723fc4b4f9c3.zip |
Merge #9036 'func_attr_printf'
Diffstat (limited to 'src/nvim/eval/encode.c')
-rw-r--r-- | src/nvim/eval/encode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/eval/encode.c b/src/nvim/eval/encode.c index 9bae436e3d..2563e38258 100644 --- a/src/nvim/eval/encode.c +++ b/src/nvim/eval/encode.c @@ -609,14 +609,14 @@ static inline int convert_to_json_string(garray_T *const gap, if (ch > 0x7F && shift == 1) { emsgf(_("E474: String \"%.*s\" contains byte that does not start " "any UTF-8 character"), - utf_len - (i - shift), utf_buf + i - shift); + (int)(utf_len - (i - shift)), utf_buf + i - shift); xfree(tofree); return FAIL; } else if ((SURROGATE_HI_START <= ch && ch <= SURROGATE_HI_END) || (SURROGATE_LO_START <= ch && ch <= SURROGATE_LO_END)) { emsgf(_("E474: UTF-8 string contains code point which belongs " "to a surrogate pair: %.*s"), - utf_len - (i - shift), utf_buf + i - shift); + (int)(utf_len - (i - shift)), utf_buf + i - shift); xfree(tofree); return FAIL; } else if (ENCODE_RAW(ch)) { |