Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 79deb35 + 555dac5 commit 21fad58Copy full SHA for 21fad58
1 file changed
src/_image.cpp
@@ -1039,8 +1039,7 @@ _image_module::fromarray2(const Py::Tuple& args)
1039
int rgba = A->dimensions[2] == 4;
1040
double r, g, b, alpha;
1041
const size_t N = imo->rowsIn * imo->colsIn;
1042
- size_t i = 0;
1043
- while (i < N)
+ for (size_t i = 0; i < N; ++i)
1044
{
1045
r = *(double *)(A->data++);
1046
g = *(double *)(A->data++);
0 commit comments