chiark
/
gitweb
/
~mdw
/
clg
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0411aa6
)
Type specifier NIL handled as special case in FIND-NEXT-TYPE-METHOD
author
espen
<espen>
Fri, 6 Apr 2007 16:06:24 +0000
(16:06 +0000)
committer
espen
<espen>
Fri, 6 Apr 2007 16:06:24 +0000
(16:06 +0000)
gffi/interface.lisp
patch
|
blob
|
blame
|
history
diff --git
a/gffi/interface.lisp
b/gffi/interface.lisp
index 96bbb87b347578140b0645e9b47371b3588b74ee..6778ea69e823b7cab20761924c56bf6021070671 100644
(file)
--- a/
gffi/interface.lisp
+++ b/
gffi/interface.lisp
@@
-20,7
+20,7
@@
;; TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
;; SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
;; TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
;; SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-;; $Id: interface.lisp,v 1.
4 2006-12-12 14:32:06
espen Exp $
+;; $Id: interface.lisp,v 1.
5 2007-04-06 16:06:24
espen Exp $
(in-package "GFFI")
(in-package "GFFI")
@@
-454,7
+454,9
@@
(defun find-next-type-method (name type-spec &optional (error-p t))
;; This is to handle unexpandable types whichs doesn't name a
;; class. It may cause infinite loops with illegal
;; call-next-method calls
;; This is to handle unexpandable types whichs doesn't name a
;; class. It may cause infinite loops with illegal
;; call-next-method calls
- (unless (and (symbolp type-spec) (find-class type-spec nil))
+ (unless (or
+ (null type-spec)
+ (and (symbolp type-spec) (find-class type-spec nil)))
(search-nodes (get name 'built-in-type-hierarchy)))
(when error-p
(error "No next type method ~A for type specifier ~A"
(search-nodes (get name 'built-in-type-hierarchy)))
(when error-p
(error "No next type method ~A for type specifier ~A"