]> git.eshelyaron.com Git - emacs.git/commitdiff
* frame.c (Fmodify_frame_parameters): Simplify loop counter.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 21 Mar 2011 18:09:45 +0000 (11:09 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 21 Mar 2011 18:09:45 +0000 (11:09 -0700)
This also avoids a warning with gcc -Wstrict-overflow.

src/ChangeLog
src/frame.c

index f8ccbfd1f3cec666ed97b77594d38bc3659c3519..d833648667d7400ffdc4b6435e7732b5df3be8ac 100644 (file)
@@ -1,5 +1,8 @@
 2011-03-21  Paul Eggert  <eggert@cs.ucla.edu>
 
+       * frame.c (Fmodify_frame_parameters): Simplify loop counter.
+       This also avoids a warning with gcc -Wstrict-overflow.
+
        * fileio.c (Fcopy_file): Report error if fchown or fchmod
        fail (Bug#8306).
 
index 05938f3e1f0cc2575a96ff1286142f348d0cdb10..5c6765279092da0d2443b546712369077d8daa8a 100644 (file)
@@ -2529,8 +2529,9 @@ use is not recommended.  Explicitly check for a frame-parameter instead.  */)
        }
 
       /* Now process them in reverse of specified order.  */
-      for (i--; i >= 0; i--)
+      while (i != 0)
        {
+         i--;
          prop = parms[i];
          val = values[i];
          store_frame_param (f, prop, val);