Update of /project/movitz/cvsroot/movitz In directory common-lisp.net:/tmp/cvs-serv649
Modified Files: storage-types.lisp Log Message: When converting a host-side hash-table to a movitz object, base the table's size on hash-table-count rather than hash-table-size, which is host-implementation-dependent.
Date: Thu Feb 12 17:58:02 2004 Author: ffjeld
Index: movitz/storage-types.lisp diff -u movitz/storage-types.lisp:1.6 movitz/storage-types.lisp:1.7 --- movitz/storage-types.lisp:1.6 Thu Feb 12 06:28:28 2004 +++ movitz/storage-types.lisp Thu Feb 12 17:58:02 2004 @@ -9,7 +9,7 @@ ;;;; Created at: Sun Oct 22 00:22:43 2000 ;;;; Distribution: See the accompanying file COPYING. ;;;; -;;;; $Id: storage-types.lisp,v 1.6 2004/02/12 11:28:28 ffjeld Exp $ +;;;; $Id: storage-types.lisp,v 1.7 2004/02/12 22:58:02 ffjeld Exp $ ;;;; ;;;;------------------------------------------------------------------
@@ -1137,7 +1137,7 @@ (assert (= 3 (length (movitz-struct-slot-values movitz-hash)))) (let* ((undef (movitz-read +undefined-hash-key+)) (old-bucket (second (movitz-struct-slot-values movitz-hash))) - (hash-size (* 2 (hash-table-size lisp-hash))) + (hash-size (* 2 (truncate (hash-table-count lisp-hash) 2/3))) (bucket-data (or (and old-bucket (= (length (movitz-vector-symbolic-data old-bucket)) hash-size)