Remove sizeof(int) < 4 related code

This commit is contained in:
John Schmidt
2014-04-20 23:57:12 +02:00
committed by Thiago de Arruda
parent 0072ba9361
commit b10341ce5b
5 changed files with 1 additions and 46 deletions

View File

@@ -3351,14 +3351,10 @@ int vim_vsnprintf(char *str, size_t str_m, char *fmt, va_list ap, typval_T *tvs)
else {
/* Don't put the #if inside memchr(), it can be a
* macro. */
#if SIZEOF_INT <= 2
char *q = memchr(str_arg, '\0', precision);
#else
/* memchr on HP does not like n > 2^31 !!! */
char *q = memchr(str_arg, '\0',
precision <= (size_t)0x7fffffffL ? precision
: (size_t)0x7fffffffL);
#endif
str_arg_l = (q == NULL) ? precision
: (size_t)(q - str_arg);
}