mirror of
https://github.com/neovim/neovim.git
synced 2025-10-01 07:28:34 +00:00
Fix warning, read/write have unsigned int count on windows.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user