removed unsafe use of boolean

This commit is contained in:
Gerhard Kitzler 2014-01-15 13:15:50 +00:00
parent b70bf88f12
commit dfc318a7ab

View File

@ -3736,7 +3736,7 @@ namespace netgen
bool has_pos = 0, has_neg = 0;
for (int i = 0; i < el.GetNP(); i++)
if (posval[el[i]] > 0)
if (posval[el[i]])
has_pos = 1;
else
has_neg = 1;