Skip to content

Commit d9afdb0

Browse files
committed
imshow: assert for order
1 parent 090601a commit d9afdb0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

matplotlibcpp.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -942,6 +942,7 @@ inline void imshow(void* ptr, const NPY_TYPES type, const int rows, const int co
942942
const char order, const std::map<std::string, std::string>& keywords,
943943
PyObject** out) {
944944
assert(type == NPY_UINT8 || type == NPY_FLOAT || type == NPY_DOUBLE);
945+
assert(order == 'C' || order == 'c' || order == 'F' || order == 'f');
945946

946947
detail::_interpreter::get();
947948

0 commit comments

Comments
 (0)