refactor: enable -Wconversion warning for edit.c

Work on https://github.com/neovim/neovim/issues/567
This commit is contained in:
Dundar Goc
2022-04-29 11:44:06 +02:00
parent 8bbeab9989
commit 21a31ea929
8 changed files with 59 additions and 68 deletions

View File

@@ -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