Fix implicit narrowing error in initializer list
authorHuu Nguyen <whoshuu@gmail.com>
Tue, 16 Sep 2014 22:30:10 +0000 (15:30 -0700)
committerHuu Nguyen <whoshuu@gmail.com>
Tue, 16 Sep 2014 22:30:10 +0000 (15:30 -0700)
commit81b9be1623fde71c5efd6b3d656b2f525d1e46a4
treed6a5c79158de02445c4e4eaad8a34c611bd8acbc
parent4689426a91a3932ab7160bb83893adb431dec8f9
Fix implicit narrowing error in initializer list

The implicit narrowing in the initializer list throws a compiler error for some compilers with C++11 support turned on. The specific error message is: "error: narrowing conversion of 'PyInt_AsLong(((PyObject*)o))' from 'long int' to 'double' inside { }".

Tested on Clang 5.1.0 and Mac OS X 10.9.4.
modules/python/src2/cv2.cpp