Skip to content

Commit fb717b8

Browse files
committed
Fix build on Ubuntu 24.02 (missing return)
1 parent 833e423 commit fb717b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/convert.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ ndarray_obj_t *mat_to_ndarray(Mat& mat)
3737
// Derived from:
3838
// https://github.com/opencv/opencv/blob/aee828ac6ed3e45d7ca359d125349a570ca4e098/modules/python/src2/cv2_convert.cpp#L313-L328
3939
if(mat.data == NULL)
40-
mp_const_none;
40+
return (ndarray_obj_t*) mp_const_none;
4141
Mat temp, *ptr = (Mat*)&mat;
4242
if(!ptr->u || ptr->allocator != &GetNumpyAllocator())
4343
{

0 commit comments

Comments
 (0)