summaryrefslogtreecommitdiff
path: root/src/coding.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2026-05-19 18:39:09 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2026-05-23 19:18:52 -0700
commit1eb2e052bb55184d62c1dec265f6d327be4e9113 (patch)
tree13d126bfc39c415e20669835f0d60ce813bfa85f /src/coding.c
parenta96fc7d5465f97908a9a6d5d2cf3be8cbf6b0ebe (diff)
New function memory_full_up
* src/alloc.c (memory_full_up): New function. Replace all callers of memory_full (SIZE_MAX) with callers to this function. This simplifies callers and should make future changes easier. It also saves a whopping 296 bytes in executable size with gcc 16.1.1 20260515 (Red Hat 16.1.1-2) x86-64.
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/coding.c b/src/coding.c
index dd767c80ab4..aea4c0cea5f 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -7045,7 +7045,7 @@ produce_chars (struct coding_system *coding, Lisp_Object translation_table,
ptrdiff_t dst_size;
if (ckd_mul (&dst_size, to_nchars, MAX_MULTIBYTE_LENGTH)
|| ckd_add (&dst_size, dst_size, buf_end - buf))
- memory_full (SIZE_MAX);
+ memory_full_up ();
dst = alloc_destination (coding, dst_size, dst);
if (EQ (coding->src_object, coding->dst_object)
/* Input and output are not C buffers, which are safe to