aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/mbyte.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-01-13 07:40:49 +0100
committerJustin M. Keyes <justinkz@gmail.com>2017-01-19 09:55:57 +0100
commit32c7971b2a6fca6fc96f250790ccd35f4a1df854 (patch)
treec3fdb67a1edf485daf5ca1f58225dd8f90320d74 /src/nvim/mbyte.c
parente40946a5be2ce11156fc7494ec81040d3cde4809 (diff)
downloadrneovim-32c7971b2a6fca6fc96f250790ccd35f4a1df854.tar.gz
rneovim-32c7971b2a6fca6fc96f250790ccd35f4a1df854.tar.bz2
rneovim-32c7971b2a6fca6fc96f250790ccd35f4a1df854.zip
win: fix warnings
Diffstat (limited to 'src/nvim/mbyte.c')
-rw-r--r--src/nvim/mbyte.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nvim/mbyte.c b/src/nvim/mbyte.c
index ec4969d4f6..c855d68605 100644
--- a/src/nvim/mbyte.c
+++ b/src/nvim/mbyte.c
@@ -1484,6 +1484,9 @@ int utf8_to_utf16(const char *str, WCHAR **strw)
(WCHAR *)pos,
wchar_len);
assert(r == wchar_len);
+ if (r != wchar_len) {
+ EMSG2("MultiByteToWideChar failed: %d", r);
+ }
*strw = (WCHAR *)pos;
return 0;
@@ -1519,6 +1522,9 @@ int utf16_to_utf8(const WCHAR *strw, char **str)
NULL,
NULL);
assert(r == utf8_len);
+ if (r != utf8_len) {
+ EMSG2("WideCharToMultiByte failed: %d", r);
+ }
*str = pos;
return 0;