From 1619725f22fec7f21dcc645571dc5bf6294b8459 Mon Sep 17 00:00:00 2001 From: Davis King Date: Sun, 20 May 2018 17:58:21 -0400 Subject: [PATCH] Improved input validation for numpy_image. --- dlib/python/numpy_image.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlib/python/numpy_image.h b/dlib/python/numpy_image.h index 1664fec54..562f972c4 100644 --- a/dlib/python/numpy_image.h +++ b/dlib/python/numpy_image.h @@ -163,7 +163,7 @@ namespace dlib const py::object& rhs ) { - py::array_t::basic_pixel_type, py::array::c_style> arr = rhs.cast(); + py::array arr = rhs.cast(); assert_is_image(arr); py::array_t::basic_pixel_type, py::array::c_style>::operator=(arr); return *this;