diff options
Diffstat (limited to 'Lisp/libobjcl.lisp')
-rw-r--r-- | Lisp/libobjcl.lisp | 3 |
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))) |