changeset 2054:79b8d69a4588 v7.2.340

updated for version 7.2.340 Problem: Gcc warning for condition that can never be true. (James Vega) Solution: Use start_lvl instead flp->lvl.
author Bram Moolenaar <bram@zimbu.org>
date Tue, 19 Jan 2010 17:24:25 +0100
parents 94f44da44d2e
children 4aa4510d548c
files src/fold.c src/version.c
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/fold.c
+++ b/src/fold.c
@@ -3239,8 +3239,8 @@ foldlevelMarker(flp)
 		    flp->lvl = n;
 		    flp->lvl_next = n - 1;
 		    /* never start a fold with an end marker */
-		    if (flp->lvl_next > flp->lvl)
-			flp->lvl_next = flp->lvl;
+		    if (flp->lvl_next > start_lvl)
+			flp->lvl_next = start_lvl;
 		}
 	    }
 	    else
--- a/src/version.c
+++ b/src/version.c
@@ -682,6 +682,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    340,
+/**/
     339,
 /**/
     338,