projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f633e01
)
* src/lread.c (read1): Fix int/Lisp_Object mix up.
author
Glenn Morris
<rgm@gnu.org>
Sun, 16 Feb 2020 17:11:28 +0000
(09:11 -0800)
committer
Glenn Morris
<rgm@gnu.org>
Sun, 16 Feb 2020 17:11:28 +0000
(09:11 -0800)
Found by --enable-check-lisp-object-type.
src/lread.c
patch
|
blob
|
history
diff --git
a/src/lread.c
b/src/lread.c
index f39e81ae2cf77b30dabf8eb69e3c0bfbf107f949..1613719eb1d9ca5ddb0bb1f6d68418ecde09b441 100644
(file)
--- a/
src/lread.c
+++ b/
src/lread.c
@@
-2976,7
+2976,7
@@
read1 (Lisp_Object readcharfun, int *pch, bool first_in_list)
invalid_syntax ("Empty byte-code object");
if (COMPILED_DOC_STRING < vec->header.size
- &&
AREF (tmp, COMPILED_DOC_STRING) == make_fixnum (0
))
+ &&
EQ (AREF (tmp, COMPILED_DOC_STRING), make_fixnum (0)
))
{
/* read_list found a docstring like '(#$ . 5521)' and treated it
as 0. This placeholder 0 would lead to accidental sharing in