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