Commit a1943c34 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(store_function_docstring): Do nothing for bytecode object

which has no slot for doc string.
parent c1033e00
......@@ -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;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment