mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 23:31:51 +00:00
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.
This commit is contained in:
@@ -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)) {
|
||||
|
Reference in New Issue
Block a user