0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

patch 7.4.2290

Problem:    Compiler warning in tiny build. (Tony Mechelynck)
Solution:   Add #ifdef around infinity_str().
This commit is contained in:
Bram Moolenaar
2016-08-28 21:21:31 +02:00
parent 7683aaa506
commit 7f7bd297d6
2 changed files with 4 additions and 0 deletions

View File

@@ -3990,6 +3990,7 @@ tv_float(typval_T *tvs, int *idxp)
# endif
#endif
#ifdef FEAT_FLOAT
/*
* Return the representation of infinity for printf() function:
* "-inf", "inf", "+inf", " inf", "-INF", "INF", "+INF" or " INF".
@@ -4011,6 +4012,7 @@ infinity_str(int positive,
idx += 4;
return table[idx];
}
#endif
/*
* This code was included to provide a portable vsnprintf() and snprintf().