| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -467,9 +467,9 @@ _png_module::_read_png(const Py::Object& py_fileobj, const bool float_result) | |||
| 467 | 467 | ||
| 468 | 468 | PyArrayObject *A = NULL; | |
| 469 | 469 | if (float_result) { | |
| 470 | - double max_value = (1 << ((bit_depth < 8) ? 8 : bit_depth)) - 1; | ||
| 471 | - | ||
| 472 | - A = (PyArrayObject *) PyArray_SimpleNew(num_dims, dimensions, NPY_FLOAT); | ||
| 470 | + double max_value = (1 << bit_depth) - 1; | ||
| 471 | + PyArrayObject *A = (PyArrayObject *) PyArray_SimpleNew( | ||
| 472 | + num_dims, dimensions, PyArray_FLOAT); | ||
| 473 | 473 | ||
| 474 | 474 | if (A == NULL) | |
| 475 | 475 | { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments