Skip to content
Snippets Groups Projects
Commit d83a7a3b authored by Fredrik Hübinette (Hubbe)'s avatar Fredrik Hübinette (Hubbe)
Browse files

bugfix

Rev: src/mapping.c:1.25
parent c894cd4b
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
||| See the files COPYING and DISCLAIMER for more information. ||| See the files COPYING and DISCLAIMER for more information.
\*/ \*/
#include "global.h" #include "global.h"
RCSID("$Id: mapping.c,v 1.24 1997/11/08 01:34:41 hubbe Exp $"); RCSID("$Id: mapping.c,v 1.25 1998/02/13 00:44:26 hubbe Exp $");
#include "main.h" #include "main.h"
#include "object.h" #include "object.h"
#include "mapping.h" #include "mapping.h"
...@@ -928,9 +928,6 @@ void check_mapping(struct mapping *m) ...@@ -928,9 +928,6 @@ void check_mapping(struct mapping *m)
if(m->size > (m->hashsize + 3) * AVG_LINK_LENGTH) if(m->size > (m->hashsize + 3) * AVG_LINK_LENGTH)
fatal("Pretty mean hashtable there buster!.\n"); fatal("Pretty mean hashtable there buster!.\n");
if(m->size < (m->hashsize - 3) * MIN_LINK_LENGTH)
fatal("Hashsize is too small for mapping.\n");
if(m->size > 0 && (!m->ind_types || !m->val_types)) if(m->size > 0 && (!m->ind_types || !m->val_types))
fatal("Mapping type fields are... wrong.\n"); fatal("Mapping type fields are... wrong.\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment