Fix possible error choosing default discipline domain.

Recent gcc warns about code that turns out to be incorrect.
This commit is contained in:
Stephen Williams 2008-05-20 10:41:24 -07:00
parent 6121c06f15
commit dadb3a68d3
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ void pform_end_discipline(const struct vlltype&loc)
{ {
// If the domain is not otherwise specified, then take it to // If the domain is not otherwise specified, then take it to
// be continuous if potential or flow natures are given. // be continuous if potential or flow natures are given.
if (discipline_domain == DD_NONE && discipline_potential||discipline_flow) if (discipline_domain == DD_NONE && (discipline_potential||discipline_flow))
discipline_domain = DD_CONTINUOUS; discipline_domain = DD_CONTINUOUS;
discipline_t*tmp = new discipline_t(discipline_name, discipline_domain, discipline_t*tmp = new discipline_t(discipline_name, discipline_domain,