aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/doc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/doc.c b/src/doc.c
index 81c22065936..ae6f77ba7e7 100644
--- a/src/doc.c
+++ b/src/doc.c
@@ -245,10 +245,8 @@ store_function_docstring (fun, offset)
245 { 245 {
246 /* This bytecode object must have a slot for the 246 /* This bytecode object must have a slot for the
247 docstring, since we've found a docstring for it. */ 247 docstring, since we've found a docstring for it. */
248 if (XVECTOR (fun)->size <= COMPILED_DOC_STRING) 248 if (XVECTOR (fun)->size > COMPILED_DOC_STRING)
249 abort (); 249 XFASTINT (XVECTOR (fun)->contents[COMPILED_DOC_STRING]) = offset;
250
251 XFASTINT (XVECTOR (fun)->contents[COMPILED_DOC_STRING]) = offset;
252 } 250 }
253} 251}
254 252