From: sewardj Date: Wed, 27 Jun 2001 11:29:10 +0000 (+0000) Subject: [project @ 2001-06-27 11:29:10 by sewardj] X-Git-Tag: Approximately_9120_patches~1696 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=70c64f33c1216f299c4377caf84465d79bb83350;p=ghc-hetmet.git [project @ 2001-06-27 11:29:10 by sewardj] Reinstate the no-duplicates ASSERTion. This was perfectly correct and the GHCi-on-windows bug which triggered it is elsewhere. --- diff --git a/ghc/rts/Hash.c b/ghc/rts/Hash.c index 9acecbd..50fb3bc 100644 --- a/ghc/rts/Hash.c +++ b/ghc/rts/Hash.c @@ -1,5 +1,5 @@ /*----------------------------------------------------------------------------- - * $Id: Hash.c,v 1.4 2001/06/25 09:49:59 rrt Exp $ + * $Id: Hash.c,v 1.5 2001/06/27 11:29:10 sewardj Exp $ * * (c) The AQUA Project, Glasgow University, 1995-1998 * (c) The GHC Team, 1999 @@ -243,8 +243,8 @@ insertHashTable(HashTable *table, StgWord key, void *data) HashList *hl; /* We want no duplicates */ - // ASSERT(lookupHashTable(table, key) == NULL); - + ASSERT(lookupHashTable(table, key) == NULL); + /* When the average load gets too high, we expand the table */ if (++table->kcount >= HLOAD * table->bcount) expand(table);