mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 01:16:31 +00:00
refactor: missing parenthesis may cause unexpected problems (#17443)
related vim-8.2.{4402,4639}
This commit is contained in:
@@ -33,11 +33,11 @@
|
||||
#define handle_T_eq kh_int_hash_equal
|
||||
|
||||
#if defined(ARCH_64)
|
||||
# define ptr_t_hash(key) uint64_t_hash((uint64_t)key)
|
||||
# define ptr_t_eq(a, b) uint64_t_eq((uint64_t)a, (uint64_t)b)
|
||||
# define ptr_t_hash(key) uint64_t_hash((uint64_t)(key))
|
||||
# define ptr_t_eq(a, b) uint64_t_eq((uint64_t)(a), (uint64_t)(b))
|
||||
#elif defined(ARCH_32)
|
||||
# define ptr_t_hash(key) uint32_t_hash((uint32_t)key)
|
||||
# define ptr_t_eq(a, b) uint32_t_eq((uint32_t)a, (uint32_t)b)
|
||||
# define ptr_t_hash(key) uint32_t_hash((uint32_t)(key))
|
||||
# define ptr_t_eq(a, b) uint32_t_eq((uint32_t)(a), (uint32_t)(b))
|
||||
#endif
|
||||
|
||||
#define INITIALIZER(T, U) T##_##U##_initializer
|
||||
|
Reference in New Issue
Block a user