From 7f650bb9a878f4ce87828bf068edd9d2b5ca032e Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 21 Mar 2011 11:09:45 -0700 Subject: [PATCH] * frame.c (Fmodify_frame_parameters): Simplify loop counter. This also avoids a warning with gcc -Wstrict-overflow. --- src/ChangeLog | 3 +++ src/frame.c | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index f8ccbfd1f3c..d833648667d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2011-03-21 Paul Eggert + * 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). diff --git a/src/frame.c b/src/frame.c index 05938f3e1f0..5c676527909 100644 --- a/src/frame.c +++ b/src/frame.c @@ -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); -- 2.39.2