-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Closed
Description
Getting these errors in version 2.1.2 in the FreeBSD port on FreeBSD 12 i386:
src/_image_wrapper.cpp:386:24: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'npy_intp' (aka 'int') in initializer list [-Wc++11-narrowing]
npy_intp dim[3] = {rows, cols, 4};
^~~~
src/_image_wrapper.cpp:386:24: note: insert an explicit cast to silence this issue
npy_intp dim[3] = {rows, cols, 4};
^~~~
static_cast<npy_intp>( )
src/_image_wrapper.cpp:386:30: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'npy_intp' (aka 'int') in initializer list [-Wc++11-narrowing]
npy_intp dim[3] = {rows, cols, 4};
^~~~
src/_image_wrapper.cpp:386:30: note: insert an explicit cast to silence this issue
npy_intp dim[3] = {rows, cols, 4};
^~~~
static_cast<npy_intp>( )
src/_image_wrapper.cpp:431:24: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'npy_intp' (aka 'int') in initializer list [-Wc++11-narrowing]
npy_intp dim[3] = {rows, cols, 4};
^~~~
src/_image_wrapper.cpp:431:24: note: insert an explicit cast to silence this issue
npy_intp dim[3] = {rows, cols, 4};
^~~~
static_cast<npy_intp>( )
src/_image_wrapper.cpp:431:30: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'npy_intp' (aka 'int') in initializer list [-Wc++11-narrowing]
npy_intp dim[3] = {rows, cols, 4};
^~~~
src/_image_wrapper.cpp:431:30: note: insert an explicit cast to silence this issue
npy_intp dim[3] = {rows, cols, 4};
^~~~
static_cast<npy_intp>( )
1574,5 99%