avoid uninitialized variable compiler warnings
This commit is contained in:
parent
9abfc24219
commit
b3c01a5b59
1 changed files with 2 additions and 1 deletions
|
@ -79,7 +79,8 @@ public:
|
|||
double ys = y;
|
||||
for (unsigned i=0;i<num_points();++i)
|
||||
{
|
||||
double x0,y0;
|
||||
double x0(0);
|
||||
double y0(0);
|
||||
vertex(&x0,&y0);
|
||||
sum += x * y0 - y * x0;
|
||||
x = x0;
|
||||
|
|
Loading…
Add table
Reference in a new issue