summaryrefslogtreecommitdiff
path: root/doc/lispref
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2017-02-21 15:31:29 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2017-02-21 15:39:17 -0800
commit83c9c6fc1cc943f239a021b42a8ca9b0e162198c (patch)
treeeb0a1840bc941357c4dffac5050776b5e8165cd3 /doc/lispref
parent5cbdaa98f975c870c4afa24346630a18b55f27ab (diff)
downloademacs-83c9c6fc1cc943f239a021b42a8ca9b0e162198c.tar.gz
Use float instead of Lisp_Object for rehash_size
* src/alloc.c (purecopy_hash_table): * src/fns.c (maybe_resize_hash_table, Fmake_hash_table): (Fhash_table_rehash_size): * src/lisp.h (struct Lisp_Hash_Table.rehash_size): The rehash_size member of struct Lisp_Hash_Table is now a float, not a Lisp_Object. * src/alloc.c (purecopy_hash_table): Assign members in order. * src/fns.c (make_hash_table): Use EMACS_INT for size and float for rehash_size, instead of Lisp_Object for both. All callers changed. * src/lisp.h (DEFAULT_REHASH_SIZE): Now float, not double, and 1 smaller. * src/print.c (print_object): Simplify by calling Fhash_table_rehash_size and Fhash_table_rehash_threshold. Avoid unnecessary NILP.
Diffstat (limited to 'doc/lispref')
-rw-r--r--doc/lispref/hash.texi6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/lispref/hash.texi b/doc/lispref/hash.texi
index 4ba3258d189..4d1582055fb 100644
--- a/doc/lispref/hash.texi
+++ b/doc/lispref/hash.texi
@@ -133,10 +133,10 @@ it grows automatically. This value specifies how to make the hash table
larger, at that time.
If @var{rehash-size} is an integer, it should be positive, and the hash
-table grows by adding that much to the nominal size. If
+table grows by adding approximately that much to the nominal size. If
@var{rehash-size} is floating point, it had better be greater
-than 1, and the hash table grows by multiplying the old size by that
-number.
+than 1, and the hash table grows by multiplying the old size by
+approximately that number.
The default value is 1.5.