diff --git a/pform.cc b/pform.cc index 086587d04..295f41cca 100644 --- a/pform.cc +++ b/pform.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #if !defined(WINNT) -#ident "$Id: pform.cc,v 1.50 2000/01/01 23:47:58 steve Exp $" +#ident "$Id: pform.cc,v 1.51 2000/01/02 01:59:28 steve Exp $" #endif # include "compiler.h" @@ -355,12 +355,13 @@ void pform_make_modgates(const string&type, svector*overrides, svector*gates) { - for (unsigned idx = 0 ; idx < overrides->count() ; idx += 1) - if (! pform_expression_is_constant((*overrides)[idx])) { - VLerror("error: Parameter override expression" - " must be constant."); - return; - } + if (overrides) + for (unsigned idx = 0 ; idx < overrides->count() ; idx += 1) + if (! pform_expression_is_constant((*overrides)[idx])) { + VLerror("error: Parameter override expression" + " must be constant."); + return; + } for (unsigned idx = 0 ; idx < gates->count() ; idx += 1) { lgate cur = (*gates)[idx]; @@ -772,6 +773,9 @@ int pform_parse(const char*path, map&modules, /* * $Log: pform.cc,v $ + * Revision 1.51 2000/01/02 01:59:28 steve + * Forgot to handle no overrides at all. + * * Revision 1.50 2000/01/01 23:47:58 steve * Fix module parameter override syntax. *