Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
5cfff271
Commit
5cfff271
authored
May 25, 2015
by
Davis King
Browse files
minor change to avoid compiler warning
parent
c2ee7bbf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tools/python/src/shape_predictor.cpp
tools/python/src/shape_predictor.cpp
+1
-1
No files found.
tools/python/src/shape_predictor.cpp
View file @
5cfff271
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment