summaryrefslogtreecommitdiff
path: root/assoc.c
diff options
context:
space:
mode:
Diffstat (limited to 'assoc.c')
-rw-r--r--assoc.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/assoc.c b/assoc.c
index 64405a6..369fa62 100644
--- a/assoc.c
+++ b/assoc.c
@@ -28,13 +28,10 @@
static pthread_cond_t maintenance_cond = PTHREAD_COND_INITIALIZER;
static pthread_mutex_t maintenance_lock = PTHREAD_MUTEX_INITIALIZER;
-typedef uint32_t ub4; /* unsigned 4-byte quantities */
-typedef unsigned char ub1; /* unsigned 1-byte quantities */
-
/* how many powers of 2's worth of buckets we use */
unsigned int hashpower = HASHPOWER_DEFAULT;
-#define hashsize(n) ((ub4)1<<(n))
+#define hashsize(n) ((uint64_t)1<<(n))
#define hashmask(n) (hashsize(n)-1)
/* Main hash table. This is where we look except during expansion. */