summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>1995-11-10 12:39:48 +0000
committerXavier Leroy <xavier.leroy@inria.fr>1995-11-10 12:39:48 +0000
commitb84346aeecd0f6adef4e6d4162cc54c243f991fa (patch)
treee6e9d9babf35ae41992c7deea81b07ba221080ab
parentabd2049344be64aa9810080bed1a6e1023a39513 (diff)
Utiliser un type non signe pour faire le hachage des pointeurs.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@435 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
-rw-r--r--byterun/extern.c6
-rw-r--r--byterun/intext.h3
2 files changed, 3 insertions, 6 deletions
diff --git a/byterun/extern.c b/byterun/extern.c
index 31957de07..c4ce514eb 100644
--- a/byterun/extern.c
+++ b/byterun/extern.c
@@ -33,12 +33,12 @@ struct extern_obj {
};
static struct extern_obj * extern_table;
-static asize_t extern_table_size;
+static unsigned long extern_table_size;
#ifdef SIXTYFOUR
-#define Hash(v) (((asize_t) ((v) >> 3)) % extern_table_size)
+#define Hash(v) (((unsigned long) ((v) >> 3)) % extern_table_size)
#else
-#define Hash(v) (((asize_t) ((v) >> 2)) % extern_table_size)
+#define Hash(v) (((unsigned long) ((v) >> 2)) % extern_table_size)
#endif
static void alloc_extern_table()
diff --git a/byterun/intext.h b/byterun/intext.h
index 5247b00a8..7ffafefea 100644
--- a/byterun/intext.h
+++ b/byterun/intext.h
@@ -58,9 +58,6 @@
/* Initial sizes of data structures for extern */
-#ifndef INITIAL_EXTERN_SIZE
-#define INITIAL_EXTERN_SIZE 4096
-#endif
#ifndef INITIAL_EXTERN_TABLE_SIZE
#define INITIAL_EXTERN_TABLE_SIZE 2039
#endif