feature/igc3 267a953f530 1/2: [MPS] Make igc_xpalloc_lisp follow the xpalloc API (bug#81283)
Pip Cet via Mailing list for Emacs changes <[email protected]>
| Newsgroups | gmane.emacs.diffs |
|---|---|
| Message-ID | <[email protected]> |
branch: feature/igc3 commit 267a953f530dd85389560ffb358d1b873fc3d454 Author: Pip Cet <[email protected]> Commit: Pip Cet <[email protected]> [MPS] Make igc_xpalloc_lisp follow the xpalloc API (bug#81283) * src/igc.c (igc_xpalloc_lisp): When PA is NULL, use *NITEMS to determine the new size but don't copy any elements. --- src/igc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/igc.c b/src/igc.c index 1f581ab5256..db3fcfd071f 100644 --- a/src/igc.c +++ b/src/igc.c @@ -4211,7 +4211,7 @@ igc_xpalloc_lisp (Lisp_Object *pa, ptrdiff_t *nitems, const char *label) { ptrdiff_t nitems_old = pa ? *nitems : 0; - ptrdiff_t nitems_new = nitems_old; + ptrdiff_t nitems_new = *nitems; ptrdiff_t nbytes = xpalloc_nbytes (pa, &nitems_new, nitems_incr_min, nitems_max, word_size); Lisp_Object *old = pa;