summaryrefslogtreecommitdiff
path: root/Lisp/libobjcl.lisp
diff options
context:
space:
mode:
Diffstat (limited to 'Lisp/libobjcl.lisp')
-rw-r--r--Lisp/libobjcl.lisp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lisp/libobjcl.lisp b/Lisp/libobjcl.lisp
index d633480..939f3b3 100644
--- a/Lisp/libobjcl.lisp
+++ b/Lisp/libobjcl.lisp
@@ -722,7 +722,8 @@ separating parts by hyphens works nicely in all of the `:INVERT`,
(defun pointer (thing)
(etypecase thing
(c-pointer thing)
- ((or c-pointer-wrapper exception) (pointer-to thing))))
+ ((or c-pointer-wrapper exception) (pointer-to thing))
+ (t (pointer-to (coerce-object thing :id)))))
(defun object-is-class-p (obj)
(%objcl-object-is-class (pointer obj)))