Commit 5cfff271 authored by Davis King's avatar Davis King

minor change to avoid compiler warning

parent c2ee7bbf
...@@ -51,7 +51,7 @@ unsigned long full_obj_det_num_parts (const full_object_detection& detection) ...@@ -51,7 +51,7 @@ unsigned long full_obj_det_num_parts (const full_object_detection& detection)
point full_obj_det_part (const full_object_detection& detection, const unsigned long idx) point full_obj_det_part (const full_object_detection& detection, const unsigned long idx)
{ {
if (idx < 0 || idx >= detection.num_parts()) if (idx >= detection.num_parts())
{ {
PyErr_SetString(PyExc_IndexError, "Index out of range"); PyErr_SetString(PyExc_IndexError, "Index out of range");
boost::python::throw_error_already_set(); boost::python::throw_error_already_set();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment