aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Hillegeer <nicolas@hillegeer.com>2014-04-19 10:59:13 +0200
committerThiago de Arruda <tpadilha84@gmail.com>2014-04-19 09:48:19 -0300
commit73fdf2d8e9e359ad80bf0538f74d1fdf5abd9389 (patch)
treeac5b28c7f297c384eec09bbdee9cc76f21536545
parent971fd3e18e783c134142356cd5ea187a0e1d96b5 (diff)
downloadrneovim-73fdf2d8e9e359ad80bf0538f74d1fdf5abd9389.tar.gz
rneovim-73fdf2d8e9e359ad80bf0538f74d1fdf5abd9389.tar.bz2
rneovim-73fdf2d8e9e359ad80bf0538f74d1fdf5abd9389.zip
use fixed-width types to define u8char_T
The current approach was a bit ad-hoc.
-rw-r--r--src/vim.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/vim.h b/src/vim.h
index 48eb3a3a50..c20228330f 100644
--- a/src/vim.h
+++ b/src/vim.h
@@ -117,13 +117,9 @@ typedef unsigned short sattr_T;
* memory.
*/
# ifdef UNICODE16
-typedef unsigned short u8char_T; /* short should be 16 bits */
+typedef uint16_t u8char_T;
# else
-# if SIZEOF_INT >= 4
-typedef unsigned int u8char_T; /* int is 32 bits */
-# else
-typedef unsigned long u8char_T; /* long should be 32 bits or more */
-# endif
+typedef uint32_t u8char_T;
# endif
#include "ascii.h"