mirror of
https://github.com/neovim/neovim.git
synced 2025-09-24 03:58:32 +00:00
api: Use a form of 1 << 63
for INTERNAL_CALL_MASK
This commit is contained in:
@@ -36,9 +36,7 @@ typedef enum {
|
||||
#define NO_RESPONSE UINT64_MAX
|
||||
|
||||
/// Mask for all internal calls
|
||||
#define INTERNAL_CALL_MASK (UINT64_MAX ^ (UINT64_MAX >> 1))
|
||||
// (1 << 63) in all forms produces “warning: shift count >= width of type
|
||||
// [-Wshift-count-overflow]”
|
||||
#define INTERNAL_CALL_MASK (((uint64_t)1) << (sizeof(uint64_t) * 8 - 1))
|
||||
|
||||
/// Internal call from VimL code
|
||||
#define VIML_INTERNAL_CALL INTERNAL_CALL_MASK
|
||||
|
Reference in New Issue
Block a user