From 1271626ab5d345cdfcd9aca1c528f6ed6152ef96 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 20 Mar 2014 17:10:29 -0700 Subject: [PATCH] Backport doc.c fix from trunk. * doc.c (store_function_docstring): Fix pointer signedness mismatch. --- src/ChangeLog | 4 ++++ src/doc.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index f67923bf417..d2572e74048 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2014-03-20 Paul Eggert + + * doc.c (store_function_docstring): Fix pointer signedness mismatch. + 2014-03-20 Stefan Monnier * doc.c (store_function_docstring): Warn when we don't know where to diff --git a/src/doc.c b/src/doc.c index 7e693165c6f..b6a4cd0a27b 100644 --- a/src/doc.c +++ b/src/doc.c @@ -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)) : ""); + SYMBOLP (obj) ? SSDATA (SYMBOL_NAME (obj)) : ""); } } -- 2.39.2