diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2015-01-16 09:27:09 -0500 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2015-01-16 09:27:09 -0500 |
commit | 401d738597a3e25319f988af49ec1cd7a5cb0980 (patch) | |
tree | 9905d7f0bf53a03199408bbbac3b0bf6fd374c7b /src/nvim/charset.c | |
parent | 5c6348e9995b0dde23a2de99263e9e0e3a72fcd2 (diff) | |
parent | 634d5d86a7cb249ca62795be06a6615705bdfb0b (diff) | |
download | rneovim-401d738597a3e25319f988af49ec1cd7a5cb0980.tar.gz rneovim-401d738597a3e25319f988af49ec1cd7a5cb0980.tar.bz2 rneovim-401d738597a3e25319f988af49ec1cd7a5cb0980.zip |
Merge pull request #1803 from elmart/small-fixes
Small fixes.
Diffstat (limited to 'src/nvim/charset.c')
-rw-r--r-- | src/nvim/charset.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/charset.c b/src/nvim/charset.c index b3d0949722..b86c66c3fe 100644 --- a/src/nvim/charset.c +++ b/src/nvim/charset.c @@ -1695,7 +1695,9 @@ intmax_t getdigits(char_u **pp) int getdigits_int(char_u **pp) { intmax_t number = getdigits(pp); +#if SIZEOF_INTMAX_T > SIZEOF_INT assert(number >= INT_MIN && number <= INT_MAX); +#endif return (int)number; } @@ -1705,7 +1707,9 @@ int getdigits_int(char_u **pp) long getdigits_long(char_u **pp) { intmax_t number = getdigits(pp); +#if SIZEOF_INTMAX_T > SIZEOF_LONG assert(number >= LONG_MIN && number <= LONG_MAX); +#endif return (long)number; } |