mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-27 10:26:19 +03:00
Removed hardcoded array size
Co-Authored-By: radarhere <radarhere@gmail.com>
This commit is contained in:
parent
ddf8593e7b
commit
207ed04d87
|
@ -855,7 +855,8 @@ PyImaging_LibTiffEncoderNew(PyObject* self, PyObject* args)
|
||||||
value = PyList_GetItem(values, pos);
|
value = PyList_GetItem(values, pos);
|
||||||
status = 0;
|
status = 0;
|
||||||
is_core_tag = 0;
|
is_core_tag = 0;
|
||||||
for (i=0; i<32; i++) {
|
int number_of_tags = sizeof(tags) / sizeof(int);
|
||||||
|
for (i=0; i<number_of_tags; i++) {
|
||||||
if (tags[i] == key_int) {
|
if (tags[i] == key_int) {
|
||||||
is_core_tag = 1;
|
is_core_tag = 1;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user