mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
removed unsafe use of boolean
This commit is contained in:
parent
08aabe7103
commit
20381f37ac
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user