mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-14 10:08:32 +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;
|
bool has_pos = 0, has_neg = 0;
|
||||||
|
|
||||||
for (int i = 0; i < el.GetNP(); i++)
|
for (int i = 0; i < el.GetNP(); i++)
|
||||||
if (posval[el[i]] > 0)
|
if (posval[el[i]])
|
||||||
has_pos = 1;
|
has_pos = 1;
|
||||||
else
|
else
|
||||||
has_neg = 1;
|
has_neg = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user