projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reduce random casting in looks_like_valid_lisp_pointer_p().
[sbcl.git]
/
src
/
compiler
/
defconstant.lisp
diff --git
a/src/compiler/defconstant.lisp
b/src/compiler/defconstant.lisp
index
1bb1d27
..
db7d628
100644
(file)
--- a/
src/compiler/defconstant.lisp
+++ b/
src/compiler/defconstant.lisp
@@
-43,7
+43,7
@@
(if (boundp name)
(if (typep name '(or boolean keyword))
;; Non-continuable error.
(if (boundp name)
(if (typep name '(or boolean keyword))
;; Non-continuable error.
- (about-to-modify-symbol-value name "define ~S as a constant")
+ (about-to-modify-symbol-value name 'defconstant)
(let ((old (symbol-value name)))
(unless (eql value old)
(multiple-value-bind (ignore aborted)
(let ((old (symbol-value name)))
(unless (eql value old)
(multiple-value-bind (ignore aborted)
@@
-57,7
+57,7
@@
(when aborted
(return-from sb!c::%defconstant name))))))
(warn "redefining a MAKUNBOUND constant: ~S" name)))
(when aborted
(return-from sb!c::%defconstant name))))))
(warn "redefining a MAKUNBOUND constant: ~S" name)))
- (:global
+ (:unknown
;; (This is OK -- undefined variables are of this kind. So we
;; don't warn or error or anything, just fall through.)
)
;; (This is OK -- undefined variables are of this kind. So we
;; don't warn or error or anything, just fall through.)
)