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

Skip to content

Commit 097697f

Browse files
committed
change pointer offset from type int to size_t, which caused problems with showing very high res images.
This fixes bug ID 3054444. svn path=/branches/v1_0_maint/; revision=8704
1 parent b05fc91 commit 097697f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/_image.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -924,7 +924,7 @@ _image_module::fromarray(const Py::Tuple& args)
924924

925925
int rgba = A->dimensions[2] == 4;
926926
double r, g, b, alpha;
927-
int offset = 0;
927+
size_t offset = 0;
928928

929929
for (size_t rownum = 0; rownum < imo->rowsIn; rownum++)
930930
{

0 commit comments

Comments
 (0)