diff options
author | Nicolas Hillegeer <nicolas@hillegeer.com> | 2014-07-17 10:31:05 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2014-07-20 04:47:17 -0400 |
commit | 1b932cbfec50ee2eddd8397df80efd1797efd2c8 (patch) | |
tree | aa25027f922b3a7a105e9e395a9d96af4d9c867e | |
parent | 953d61cbf82d5f1acd68bd1ae2101d92f5ec5492 (diff) | |
download | rneovim-1b932cbfec50ee2eddd8397df80efd1797efd2c8.tar.gz rneovim-1b932cbfec50ee2eddd8397df80efd1797efd2c8.tar.bz2 rneovim-1b932cbfec50ee2eddd8397df80efd1797efd2c8.zip |
types: typedef long_u as uintptr_t #961
As discussed here: https://github.com/neovim/neovim/pull/941/files#r15026398
-rw-r--r-- | src/nvim/types.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/types.h b/src/nvim/types.h index ad905aa95b..9d53722014 100644 --- a/src/nvim/types.h +++ b/src/nvim/types.h @@ -13,10 +13,10 @@ // dummy to pass an ACL to a function typedef void *vim_acl_T; -// Make sure long_u is big enough to hold a pointer. -// On Win64, longs are 32 bits and pointers are 64 bits. -// For printf() and scanf(), we need to take care of long_u specifically. -typedef unsigned long long_u; +// According to the vanilla Vim docs, long_u needs to be big enough to hold +// a pointer for the platform. On C99, this is easy to do with the uintptr_t +// type in lieu of the platform-specific typedefs that existed before. +typedef uintptr_t long_u; /* * Shorthand for unsigned variables. Many systems, but not all, have u_char |