]> git.eshelyaron.com Git - emacs.git/commitdiff
(store_function_docstring): Do nothing for bytecode object
authorRichard M. Stallman <rms@gnu.org>
Wed, 17 Aug 1994 20:06:55 +0000 (20:06 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 17 Aug 1994 20:06:55 +0000 (20:06 +0000)
which has no slot for doc string.

src/doc.c

index 81c22065936b53563285a19e553befc4f719c398..ae6f77ba7e7057e702d2a8fd5a6781fb78664fc6 100644 (file)
--- a/src/doc.c
+++ b/src/doc.c
@@ -245,10 +245,8 @@ store_function_docstring (fun, offset)
     {
       /* This bytecode object must have a slot for the
         docstring, since we've found a docstring for it.  */
-      if (XVECTOR (fun)->size <= COMPILED_DOC_STRING)
-       abort ();
-
-      XFASTINT (XVECTOR (fun)->contents[COMPILED_DOC_STRING]) = offset;
+      if (XVECTOR (fun)->size > COMPILED_DOC_STRING)
+       XFASTINT (XVECTOR (fun)->contents[COMPILED_DOC_STRING]) = offset;
     }
 }