comparison src/version.c @ 2619:6a80537ac7aa v7.3.041

updated for version 7.3.041 Problem: Compiler warning for accessing mediumVersion. (Tony Mechelynck) Solution: Use the pointer instead of the array itself. (Dominique Pelle)
author Bram Moolenaar <bram@vim.org>
date Wed, 27 Oct 2010 16:01:27 +0200
parents fb60c9f35517
children 5fbc411a611d
comparison
equal deleted inserted replaced
2618:fb60c9f35517 2619:6a80537ac7aa
712 NULL 712 NULL
713 }; 713 };
714 714
715 static int included_patches[] = 715 static int included_patches[] =
716 { /* Add new patch number below this line */ 716 { /* Add new patch number below this line */
717 /**/
718 41,
717 /**/ 719 /**/
718 40, 720 40,
719 /**/ 721 /**/
720 39, 722 39,
721 /**/ 723 /**/
1340 { 1342 {
1341 STRCPY(vers, mediumVersion); 1343 STRCPY(vers, mediumVersion);
1342 if (highest_patch()) 1344 if (highest_patch())
1343 { 1345 {
1344 /* Check for 9.9x or 9.9xx, alpha/beta version */ 1346 /* Check for 9.9x or 9.9xx, alpha/beta version */
1345 if (isalpha((int)mediumVersion[3])) 1347 if (isalpha((int)vers[3]))
1346 { 1348 {
1347 if (isalpha((int)mediumVersion[4])) 1349 if (isalpha((int)vers[4]))
1348 sprintf((char *)vers + 5, ".%d%s", highest_patch(), 1350 sprintf((char *)vers + 5, ".%d%s", highest_patch(),
1349 mediumVersion + 5); 1351 mediumVersion + 5);
1350 else 1352 else
1351 sprintf((char *)vers + 4, ".%d%s", highest_patch(), 1353 sprintf((char *)vers + 4, ".%d%s", highest_patch(),
1352 mediumVersion + 4); 1354 mediumVersion + 4);