projects
/
profile
/
ivi
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
769f61f
)
Fix linux build warning
author
Andrey Kamaev
<andrey.kamaev@itseez.com>
Mon, 22 Oct 2012 14:19:32 +0000
(18:19 +0400)
committer
Andrey Kamaev
<andrey.kamaev@itseez.com>
Mon, 22 Oct 2012 14:38:22 +0000
(18:38 +0400)
modules/python/src2/cv2.cv.hpp
patch
|
blob
|
history
diff --git
a/modules/python/src2/cv2.cv.hpp
b/modules/python/src2/cv2.cv.hpp
index
0207189
..
09d3c47
100644
(file)
--- a/
modules/python/src2/cv2.cv.hpp
+++ b/
modules/python/src2/cv2.cv.hpp
@@
-3829,8
+3829,9
@@
static int zero = 0;
coeff_usage = CV_VALUE; \
else if ((length == alpha.count) && (alpha.count == beta.count) && (beta.count == gamma.count)) \
coeff_usage = CV_ARRAY; \
- else \
- return (PyObject*)failmsg("SnakeImage weights invalid"); \
+ else { \
+ failmsg("SnakeImage weights invalid"); \
+ return (PyObject*)0; } \
cvSnakeImage(image, points, length, a, b, g, coeff_usage, win, criteria, calc_gradient); \
} while (0)