summaryrefslogtreecommitdiff
path: root/src/alloc.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2018-12-08 10:42:50 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2018-12-08 10:50:15 -0800
commit9b099ce56b0a5a952c096568c28b1007d321ee24 (patch)
tree7d2f97997c9c609bc0f3e12e3c9a1f78255f3bfb /src/alloc.c
parent469e6bc57babf53315229bc2d8bb07dde8c3195f (diff)
downloademacs-9b099ce56b0a5a952c096568c28b1007d321ee24.tar.gz
* src/alloc.c (allocate_vectorlike): Simplify.
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/alloc.c b/src/alloc.c
index 0e48b33882c..596de3af85e 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -3358,10 +3358,8 @@ allocate_vectorlike (ptrdiff_t len)
p = allocate_vector_from_block (vroundup (nbytes));
else
{
- struct large_vector *lv
- = lisp_malloc ((large_vector_offset + header_size
- + len * word_size),
- MEM_TYPE_VECTORLIKE);
+ struct large_vector *lv = lisp_malloc (large_vector_offset + nbytes,
+ MEM_TYPE_VECTORLIKE);
lv->next = large_vectors;
large_vectors = lv;
p = large_vector_vec (lv);