mirror of
https://github.com/neovim/neovim.git
synced 2025-10-01 15:38:33 +00:00
Fix warning when assing size_t type value to uv_buf_t.len, convert type to ULONG on Windows.
This commit is contained in:
@@ -188,4 +188,11 @@
|
||||
/// @return ((Type *)obj).
|
||||
#define STRUCT_CAST(Type, obj) ((Type *)(obj))
|
||||
|
||||
// Type of uv_buf_t.len on Windows is ULONG, but others is size_t.
|
||||
#if defined(WIN32)
|
||||
# define UV_BUF_LEN(x) (ULONG)(x)
|
||||
#else
|
||||
# define UV_BUF_LEN(x) (x)
|
||||
#endif
|
||||
|
||||
#endif // NVIM_MACROS_H
|
||||
|
Reference in New Issue
Block a user