Backport doc.c fix from trunk.

* doc.c (store_function_docstring): Fix pointer signedness mismatch.
This commit is contained in:
Paul Eggert 2014-03-20 17:10:29 -07:00
parent a2326811fc
commit 1271626ab5
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2014-03-20 Paul Eggert <eggert@cs.ucla.edu>
* doc.c (store_function_docstring): Fix pointer signedness mismatch.
2014-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
* doc.c (store_function_docstring): Warn when we don't know where to

View file

@ -537,7 +537,7 @@ store_function_docstring (Lisp_Object obj, ptrdiff_t offset)
ASET (fun, COMPILED_DOC_STRING, make_number (offset));
else
message ("No docstring slot for %s",
SYMBOLP (obj) ? SDATA (SYMBOL_NAME (obj)) : "<anonymous>");
SYMBOLP (obj) ? SSDATA (SYMBOL_NAME (obj)) : "<anonymous>");
}
}