vim-patch:7.4.2292 (#6304)

Problem:    Not all systems understand %F in printf().
Solution:   Use %f.

965ed14973
This commit is contained in:
Jack Bracewell 2017-03-17 17:30:18 +00:00 committed by Justin M. Keyes
parent 147e115dd9
commit 1de50acc41
2 changed files with 2 additions and 2 deletions

View File

@ -1228,7 +1228,7 @@ int vim_vsnprintf(char *str, size_t str_m, const char *fmt, va_list ap,
l += snprintf(format + 1, sizeof(format) - 1, ".%d", l += snprintf(format + 1, sizeof(format) - 1, ".%d",
(int)precision); (int)precision);
} }
format[l] = fmt_spec; format[l] = fmt_spec == 'F' ? 'f' : fmt_spec;
format[l + 1] = NUL; format[l + 1] = NUL;
assert(l + 1 < (int)sizeof(format)); assert(l + 1 < (int)sizeof(format));
str_arg_l = (size_t)snprintf(tmp, sizeof(tmp), format, f); str_arg_l = (size_t)snprintf(tmp, sizeof(tmp), format, f);

View File

@ -148,7 +148,7 @@ static int included_patches[] = {
2295, 2295,
2294, 2294,
// 2293, // 2293,
// 2292, 2292,
// 2291, // 2291,
// 2290 NA // 2290 NA
// 2289 NA // 2289 NA