mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-07 04:10:27 -08:00
* fns.c (Fcopy_sequence): Don't assume vector length fits in int.
This commit is contained in:
parent
6346d30171
commit
de41a81069
2 changed files with 2 additions and 1 deletions
|
|
@ -10,6 +10,7 @@
|
|||
(Fsafe_length): Return a float if the value is not representable
|
||||
as a fixnum. This shouldn't happen except in contrived situations.
|
||||
(Fnthcdr, Fsort): Don't assume list length fits in int.
|
||||
(Fcopy_sequence): Don't assume vector length fits in int.
|
||||
|
||||
* alloc.c: Check that resized vectors' lengths fit in fixnums.
|
||||
(header_size, word_size): New constants.
|
||||
|
|
|
|||
|
|
@ -436,7 +436,7 @@ with the original. */)
|
|||
if (BOOL_VECTOR_P (arg))
|
||||
{
|
||||
Lisp_Object val;
|
||||
int size_in_chars
|
||||
ptrdiff_t size_in_chars
|
||||
= ((XBOOL_VECTOR (arg)->size + BOOL_VECTOR_BITS_PER_CHAR - 1)
|
||||
/ BOOL_VECTOR_BITS_PER_CHAR);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue