avoid uninitialized variable compiler warnings

This commit is contained in:
Dane Springmeyer 2011-03-21 20:35:15 +00:00
parent 9abfc24219
commit b3c01a5b59

View file

@ -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;