fix debug assert compile

This commit is contained in:
Dane Springmeyer 2016-04-18 08:06:30 -07:00
parent 66160e9754
commit b0894bfda3

View file

@ -32,7 +32,7 @@ bool is_clockwise(T const& ring)
{ {
double area = 0.0; double area = 0.0;
std::size_t num_points = ring.size(); std::size_t num_points = ring.size();
assert(num_point > 2); assert(num_points > 2);
double orig_x = ring[0].x; double orig_x = ring[0].x;
double orig_y = ring[0].y; double orig_y = ring[0].y;
for (std::size_t i = 0; i < num_points; ++i) for (std::size_t i = 0; i < num_points; ++i)