diff options
| author | Paul Eggert | 2019-06-27 12:31:27 -0700 |
|---|---|---|
| committer | Paul Eggert | 2019-06-27 12:35:09 -0700 |
| commit | 06d2eb33e1d189eee8d89cb5159f779e1600c4f2 (patch) | |
| tree | 9b3e12a395e5dcf578f7604605e1c547ed6fe237 /src/fileio.c | |
| parent | f59a3f3d61c7da8a22ddb13185ae2271865ae155 (diff) | |
| download | emacs-06d2eb33e1d189eee8d89cb5159f779e1600c4f2.tar.gz emacs-06d2eb33e1d189eee8d89cb5159f779e1600c4f2.zip | |
Omit a few minor unnecessary range checks
Based on Pip Cet’s review (Bug#36370#19).
* src/fileio.c (Fdo_auto_save):
* src/image.c (lookup_image):
* src/textprop.c (Fnext_single_char_property_change):
Prefer XFIXNUM to XFIXNAT for clarity and consistency with
neighboring code, and to avoid unnecessary range checks.
* src/image.c (lookup_image): Omit unnecessary range checks.
Diffstat (limited to 'src/fileio.c')
| -rw-r--r-- | src/fileio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c index 61e10dac47f..ed1d2aedf37 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -5852,7 +5852,7 @@ A non-nil CURRENT-ONLY argument means save only current buffer. */) | |||
| 5852 | spare the user annoying messages. */ | 5852 | spare the user annoying messages. */ |
| 5853 | && XFIXNUM (BVAR (b, save_length)) > 5000 | 5853 | && XFIXNUM (BVAR (b, save_length)) > 5000 |
| 5854 | && (growth_factor * (BUF_Z (b) - BUF_BEG (b)) | 5854 | && (growth_factor * (BUF_Z (b) - BUF_BEG (b)) |
| 5855 | < (growth_factor - 1) * XFIXNAT (BVAR (b, save_length))) | 5855 | < (growth_factor - 1) * XFIXNUM (BVAR (b, save_length))) |
| 5856 | /* These messages are frequent and annoying for `*mail*'. */ | 5856 | /* These messages are frequent and annoying for `*mail*'. */ |
| 5857 | && !NILP (BVAR (b, filename)) | 5857 | && !NILP (BVAR (b, filename)) |
| 5858 | && NILP (no_message)) | 5858 | && NILP (no_message)) |