diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-10-27 16:01:27 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-10-27 16:01:27 +0200 |
commit | 22df3f90fcd910ae99b9c08ad6363a2706f8d999 (patch) | |
tree | cd1a8059b826555d3bd3cf5ba7f126ed6041724e | |
parent | c395a3aac26875fd494a98b0a2221a414d9076d7 (diff) | |
download | vim-git-22df3f90fcd910ae99b9c08ad6363a2706f8d999.tar.gz |
updated for version 7.3.041v7.3.041
Problem: Compiler warning for accessing mediumVersion. (Tony Mechelynck)
Solution: Use the pointer instead of the array itself. (Dominique Pelle)
-rw-r--r-- | src/version.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/version.c b/src/version.c index 3285341ee..83ced4d12 100644 --- a/src/version.c +++ b/src/version.c @@ -715,6 +715,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 41, +/**/ 40, /**/ 39, @@ -1342,9 +1344,9 @@ do_intro_line(row, mesg, add_version, attr) if (highest_patch()) { /* Check for 9.9x or 9.9xx, alpha/beta version */ - if (isalpha((int)mediumVersion[3])) + if (isalpha((int)vers[3])) { - if (isalpha((int)mediumVersion[4])) + if (isalpha((int)vers[4])) sprintf((char *)vers + 5, ".%d%s", highest_patch(), mediumVersion + 5); else |