summaryrefslogtreecommitdiff
path: root/libguile/hashtab.c
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2018-06-17 19:21:42 +0200
committerAndy Wingo <wingo@pobox.com>2018-06-17 19:21:42 +0200
commit7b4ab0895b51f21d9f15581d2407861bac986231 (patch)
treef9664801173edaae821caaf8e597ab7fa65d521d /libguile/hashtab.c
parentea3c5cf9099741869043c56bc57f48c46976dc79 (diff)
downloadguile-7b4ab0895b51f21d9f15581d2407861bac986231.tar.gz
Inline definition of SIZEOF_SCM_T_BITS
* libguile/_scm.h (SIZEOF_SCM_T_BITS): Remove definition. * libguile/conv-integer.i.c (SCM_TO_TYPE_PROTO, SCM_FROM_TYPE_PROTO): * libguile/conv-uinteger.i.c (SCM_FROM_TYPE_PROTO): * libguile/gc.c (DEFAULT_INITIAL_HEAP_SIZE): * libguile/hashtab.c: * libguile/loader.c: * libguile/socket.c: * libguile/vm-engine.c (VM_NAME): Use SIZEOF_UINTPTR_T instead of SIZEOF_SCM_T_BITS.
Diffstat (limited to 'libguile/hashtab.c')
-rw-r--r--libguile/hashtab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libguile/hashtab.c b/libguile/hashtab.c
index 095ebca36..e675d6a7c 100644
--- a/libguile/hashtab.c
+++ b/libguile/hashtab.c
@@ -62,7 +62,7 @@
static unsigned long hashtable_size[] = {
31, 61, 113, 223, 443, 883, 1759, 3517, 7027, 14051, 28099, 56197, 112363,
224717, 449419, 898823, 1797641, 3595271, 7190537, 14381041
-#if SIZEOF_SCM_T_BITS > 4
+#if SIZEOF_UINTPTR_T > 4
/* vector lengths are stored in the first word of vectors, shifted by
8 bits for the tc8, so for 32-bit we only get 2^24-1 = 16777215
elements. But we allow a few more sizes for 64-bit. */