fix remhash, extend-hashtable and '(array * nil) types - gcl.git - GNU Common Lisp

index : gcl.git
GNU Common Lisp
summary refs log tree commit diff
diff options
context:
space:
mode:
authorCamm Maguire <camm@debian.org>2013年11月15日 16:26:42 +0000
committerCamm Maguire <camm@debian.org>2013年11月15日 16:28:07 +0000
commit54fcbe57378ea1d43d817a8e284584573945d752 (patch)
tree6ffa6b37f271e11d083fbe7a649c01035e9c18bd
parent3431e361306c967bab16fff578f87c0b974bb85e (diff)
downloadgcl-54fcbe57378ea1d43d817a8e284584573945d752.tar.gz
fix remhash, extend-hashtable and '(array * nil) types
Diffstat
-rw-r--r--gcl/lsp/gcl_hash.lsp 1
-rw-r--r--gcl/lsp/gcl_typep.lsp 6
-rwxr-xr-xgcl/o/hash.d 2
3 files changed, 4 insertions, 5 deletions
diff --git a/gcl/lsp/gcl_hash.lsp b/gcl/lsp/gcl_hash.lsp
index e53fd77f5..00226f90f 100644
--- a/gcl/lsp/gcl_hash.lsp
+++ b/gcl/lsp/gcl_hash.lsp
@@ -40,7 +40,6 @@
(let ((e (gethash-int x y)))
(unless (eql +objnull+ (htent-key e))
(set-htent-key e +objnull+)
- (set-htent-value e (nani +objnull+))
(c-set-hashtable-nent y (1- (c-hashtable-nent y)))
t)))
diff --git a/gcl/lsp/gcl_typep.lsp b/gcl/lsp/gcl_typep.lsp
index 4471bc7c6..5af526cde 100644
--- a/gcl/lsp/gcl_typep.lsp
+++ b/gcl/lsp/gcl_typep.lsp
@@ -16,15 +16,15 @@
(defun db (o tp)
(let* ((b (car tp))(i -1))
- (cond ((not b))
+ (cond ((not tp))
((eq b '*))
((not (listp b)) (eql (c-array-rank o) b))
- ((eql (length b) (c-array-rank o))(not (member-if-not (lambda (x) (incf i) (or (eq x '*) (eql x (array-dims o i)))) b))))))
+ ((eql (length b) (c-array-rank o)) (not (member-if-not (lambda (x) (incf i) (or (eq x '*) (eql x (array-dims o i)))) b))))))
(defun dbv (o tp)
(let* ((b (car tp))(b (if (listp b) (car b) b)))
- (cond ((not b))
+ (cond ((not tp))
((eq b '*))
((eql (c-array-dim o) b)))))
(setf (get 'db 'compiler::cmp-inline) t)
diff --git a/gcl/o/hash.d b/gcl/o/hash.d
index 140c0d2e9..abdfa775d 100755
--- a/gcl/o/hash.d
+++ b/gcl/o/hash.d
@@ -912,7 +912,7 @@ DEFUN("HASH-TABLE-REHASH-SIZE",object,fLhash_table_rehash_size,LISP,1,1,NONE,OO,
RETURN1(table->ht.ht_rhsize);
}
-DEFUN("EXTEND-HASHTABLE",fixnum,fSextent_hashtable,SI,1,1,NONE,OO,OO,OO,OO,(object table),"") {
+DEFUN("EXTEND-HASHTABLE",fixnum,fSextent_hashtable,SI,1,1,NONE,IO,OO,OO,OO,(object table),"") {
extend_hashtable(table);
return table->ht.ht_size;
}
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月03日 02:05:46 +0000

AltStyle によって変換されたページ (->オリジナル) /