Mercurial > emacs
changeset 53705:db8cbe59ee5c
(Fpurecopy): Declare size as EMACS_INT to not lose bits.
author | Andreas Schwab <schwab@suse.de> |
---|---|
date | Mon, 26 Jan 2004 11:54:25 +0000 |
parents | 47b66024b855 |
children | 35525a4fab1e |
files | src/alloc.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/alloc.c Mon Jan 26 11:53:59 2004 +0000 +++ b/src/alloc.c Mon Jan 26 11:54:25 2004 +0000 @@ -4230,12 +4230,13 @@ else if (COMPILEDP (obj) || VECTORP (obj)) { register struct Lisp_Vector *vec; - register int i, size; + register int i; + EMACS_INT size; size = XVECTOR (obj)->size; if (size & PSEUDOVECTOR_FLAG) size &= PSEUDOVECTOR_SIZE_MASK; - vec = XVECTOR (make_pure_vector ((EMACS_INT) size)); + vec = XVECTOR (make_pure_vector (size)); for (i = 0; i < size; i++) vec->contents[i] = Fpurecopy (XVECTOR (obj)->contents[i]); if (COMPILEDP (obj))