diff options
| author | Paul Eggert | 2011-03-21 11:09:45 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-03-21 11:09:45 -0700 |
| commit | 7f650bb9a878f4ce87828bf068edd9d2b5ca032e (patch) | |
| tree | 9e1ed870cd550bbc041643b0fe1444bb8dd08d5c /src/frame.c | |
| parent | b1f961e1fa871419e3e75759ad2fefee032ebff5 (diff) | |
| download | emacs-7f650bb9a878f4ce87828bf068edd9d2b5ca032e.tar.gz emacs-7f650bb9a878f4ce87828bf068edd9d2b5ca032e.zip | |
* frame.c (Fmodify_frame_parameters): Simplify loop counter.
This also avoids a warning with gcc -Wstrict-overflow.
Diffstat (limited to 'src/frame.c')
| -rw-r--r-- | src/frame.c | 3 |
1 files changed, 2 insertions, 1 deletions
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. */) | |||
| 2529 | } | 2529 | } |
| 2530 | 2530 | ||
| 2531 | /* Now process them in reverse of specified order. */ | 2531 | /* Now process them in reverse of specified order. */ |
| 2532 | for (i--; i >= 0; i--) | 2532 | while (i != 0) |
| 2533 | { | 2533 | { |
| 2534 | i--; | ||
| 2534 | prop = parms[i]; | 2535 | prop = parms[i]; |
| 2535 | val = values[i]; | 2536 | val = values[i]; |
| 2536 | store_frame_param (f, prop, val); | 2537 | store_frame_param (f, prop, val); |