Corrected-typo-in-numpy-data-type.patch

Tristan VINCENT, 2012-12-07 03:13 pm

Download (1.3 kB)

 
b/modules/python/src2/cv2.cpp
236 236
               typenum == NPY_BYTE ? CV_8S :
237 237
               typenum == NPY_USHORT ? CV_16U :
238 238
               typenum == NPY_SHORT ? CV_16S :
239
               typenum == NPY_INT32 ? CV_32S :
239
               typenum == NPY_INT ? CV_32S :
240 240
               typenum == NPY_FLOAT ? CV_32F :
241 241
               typenum == NPY_DOUBLE ? CV_64F : -1;
242 242

  
......
245 245
        if( typenum == NPY_INT64 || typenum == NPY_UINT64 || type == NPY_LONG )
246 246
        {
247 247
            needcopy = needcast = true;
248
            new_typenum = NPY_INT32;
248
            new_typenum = NPY_INT;
249 249
            type = CV_32S;
250 250
        }
251 251
        else
252
-