cut,numfmt: prefer xpalloc to x2nrealloc
commit3aaadf281f63c766a8c439b1ba5df5848d1c8b25
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 7 Nov 2024 22:17:14 +0000 (7 14:17 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 9 Nov 2024 07:41:18 +0000 (8 23:41 -0800)
tree9c0cf58789cd4798c0b1d216056a669218e5ded8
parent1932ca94d391b59a9116367425d7bad62f80c484
cut,numfmt: prefer xpalloc to x2nrealloc

* src/set-fields.c (n_frp, n_frp_allocated, complement_rp, set_fields):
Prefer idx_t to ptrdiff_t/size_t for nonnegative sizes.
(add_range_pair): Use xpalloc, not x2nrealloc.
src/set-fields.c
src/set-fields.h