diff options
author | Dundar Goc <gocdundar@gmail.com> | 2022-04-29 11:44:06 +0200 |
---|---|---|
committer | Dundar Goc <gocdundar@gmail.com> | 2022-05-06 11:00:29 +0200 |
commit | 21a31ea9294ef923a9d258c668d2864f4409cf1c (patch) | |
tree | 9337f23f9b8c1b7b4dc1ec54cabc6da0ff46ae8d /src/nvim/strings.c | |
parent | 8bbeab9989d5f905ce2e4512e9967ee99d859f70 (diff) | |
download | rneovim-21a31ea9294ef923a9d258c668d2864f4409cf1c.tar.gz rneovim-21a31ea9294ef923a9d258c668d2864f4409cf1c.tar.bz2 rneovim-21a31ea9294ef923a9d258c668d2864f4409cf1c.zip |
refactor: enable -Wconversion warning for edit.c
Work on https://github.com/neovim/neovim/issues/567
Diffstat (limited to 'src/nvim/strings.c')
-rw-r--r-- | src/nvim/strings.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/strings.c b/src/nvim/strings.c index 848044ee7c..a897228d6b 100644 --- a/src/nvim/strings.c +++ b/src/nvim/strings.c @@ -408,7 +408,7 @@ size_t xstrnlen(const char *s, size_t n) if (end == NULL) { return n; } - return end - s; + return (size_t)(end - s); } #endif |