Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c9cefdc

Browse files
committed
fix error in merge commit bca1fb0; fixes issue #673
1 parent 9ef03bb commit c9cefdc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/_png.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -468,8 +468,8 @@ _png_module::_read_png(const Py::Object& py_fileobj, const bool float_result)
468468
PyArrayObject *A = NULL;
469469
if (float_result) {
470470
double max_value = (1 << bit_depth) - 1;
471-
PyArrayObject *A = (PyArrayObject *) PyArray_SimpleNew(
472-
num_dims, dimensions, PyArray_FLOAT);
471+
472+
A = (PyArrayObject *) PyArray_SimpleNew(num_dims, dimensions, NPY_FLOAT);
473473

474474
if (A == NULL)
475475
{

0 commit comments

Comments
 (0)