aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
authorStefan Kangas2024-01-09 07:55:51 +0100
committerStefan Kangas2024-01-09 07:55:51 +0100
commit79510d81d87488062c41a27279aaf0815c7933bc (patch)
treef0edfe52f73d60468690f7573878f073d903e9b9 /src/coding.c
parent774c8ec74c98d69d56b2511a613145f2b69fb2eb (diff)
downloademacs-79510d81d87488062c41a27279aaf0815c7933bc.tar.gz
emacs-79510d81d87488062c41a27279aaf0815c7933bc.zip
Use `min`/`max` macros in a few more places
* src/bidi.c (bidi_set_sos_type): * src/coding.c (consume_chars): * src/dosfns.c (dos_memory_info): * src/emacs.c (sort_args): * src/insdel.c (count_combining_before) (count_combining_after, replace_range, del_range_2): * src/sort.c (tim_sort): * src/w32.c (sys_write): * src/xfaces.c (face_at_buffer_position) (face_for_overlay_string): Prefer using 'min' and 'max' macros.
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/coding.c b/src/coding.c
index 219e3554c18..a5bec8b6305 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -7658,8 +7658,7 @@ consume_chars (struct coding_system *coding, Lisp_Object translation_table,
7658 if (pos == stop_charset) 7658 if (pos == stop_charset)
7659 buf = handle_charset_annotation (pos, end_pos, coding, 7659 buf = handle_charset_annotation (pos, end_pos, coding,
7660 buf, &stop_charset); 7660 buf, &stop_charset);
7661 stop = (stop_composition < stop_charset 7661 stop = min (stop_composition, stop_charset);
7662 ? stop_composition : stop_charset);
7663 } 7662 }
7664 7663
7665 if (! multibytep) 7664 if (! multibytep)