aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/charset.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2023-02-27 16:30:32 +0100
committerBjörn Linse <bjorn.linse@gmail.com>2023-03-03 14:19:46 +0100
commit166b149d5b473f277c63e64ced03c40df44ac3c9 (patch)
treeaf1b66f0a4b0b13ad128d0cef106aef5bfbfc704 /src/nvim/charset.c
parentfbaf5bde55d42869ed6d9e9fc072110ac9976c66 (diff)
downloadrneovim-166b149d5b473f277c63e64ced03c40df44ac3c9.tar.gz
rneovim-166b149d5b473f277c63e64ced03c40df44ac3c9.tar.bz2
rneovim-166b149d5b473f277c63e64ced03c40df44ac3c9.zip
refactor(build): remove unused stdlib function and include checks
In addition: merge some checks for the same feature into one test_compile. This reduces the total number of test compiles which speeds up the cmake configure stage.
Diffstat (limited to 'src/nvim/charset.c')
-rw-r--r--src/nvim/charset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/charset.c b/src/nvim/charset.c
index 1cfb5350f3..bf18d110c0 100644
--- a/src/nvim/charset.c
+++ b/src/nvim/charset.c
@@ -1446,7 +1446,7 @@ long getdigits_long(char **pp, bool strict, long def)
int32_t getdigits_int32(char **pp, bool strict, long def)
{
intmax_t number = getdigits(pp, strict, def);
-#if SIZEOF_INTMAX_T > SIZEOF_INT32_T
+#if SIZEOF_INTMAX_T > 4
if (strict) {
assert(number >= INT32_MIN && number <= INT32_MAX);
} else if (!(number >= INT32_MIN && number <= INT32_MAX)) {