aboutsummaryrefslogtreecommitdiffstats
path: root/src/lread.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lread.c')
-rw-r--r--src/lread.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lread.c b/src/lread.c
index 9518631ba6d..fe2b92a34b3 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -2597,7 +2597,10 @@ read1 (Lisp_Object readcharfun, int *pch, bool first_in_list)
2597 build them using function calls. */ 2597 build them using function calls. */
2598 Lisp_Object tmp; 2598 Lisp_Object tmp;
2599 tmp = read_vector (readcharfun, 1); 2599 tmp = read_vector (readcharfun, 1);
2600 make_byte_code (XVECTOR (tmp)); 2600 struct Lisp_Vector* vec = XVECTOR (tmp);
2601 if (vec->header.size==0)
2602 invalid_syntax ("Empty byte-code object");
2603 make_byte_code (vec);
2601 return tmp; 2604 return tmp;
2602 } 2605 }
2603 if (c == '(') 2606 if (c == '(')
@@ -3459,7 +3462,7 @@ read_vector (Lisp_Object readcharfun, bool bytecodeflag)
3459 vector = Fmake_vector (len, Qnil); 3462 vector = Fmake_vector (len, Qnil);
3460 3463
3461 size = ASIZE (vector); 3464 size = ASIZE (vector);
3462 ptr = XVECTOR (vector)->contents; 3465 ptr = XVECTOR (vector)->u.contents;
3463 for (i = 0; i < size; i++) 3466 for (i = 0; i < size; i++)
3464 { 3467 {
3465 item = Fcar (tem); 3468 item = Fcar (tem);