1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-10 05:30:45 -08:00

* frame.c (Fmodify_frame_parameters): Simplify loop counter.

This also avoids a warning with gcc -Wstrict-overflow.
This commit is contained in:
Paul Eggert 2011-03-21 11:09:45 -07:00
parent b1f961e1fa
commit 7f650bb9a8
2 changed files with 5 additions and 1 deletions

View 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).

View 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);