Fix warning, read/write have unsigned int count on windows.

This commit is contained in:
George Zhao
2018-01-17 19:54:21 +08:00
parent 421f2605c0
commit 2408a05151
2 changed files with 9 additions and 2 deletions

View File

@@ -195,4 +195,11 @@
# define UV_BUF_LEN(x) (x)
#endif
// Type of bufcnt for read/write on Windows is unsigned int, not size_t.
#if defined(WIN32)
# define IO_SIZE(x) (unsigned)(x)
#else
# define IO_SIZE(x) (x)
#endif
#endif // NVIM_MACROS_H