mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 09:26:16 +03:00
imagingft: Replace PyDict_GetItem with PyDict_GetItemRef
This commit is contained in:
parent
7c64ae0c73
commit
87596bd747
|
@ -20,6 +20,7 @@
|
|||
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
#include "Python.h"
|
||||
#include "thirdparty/pythoncapi_compat.h"
|
||||
#include "libImaging/Imaging.h"
|
||||
|
||||
#include <ft2build.h>
|
||||
|
@ -1219,7 +1220,7 @@ font_getvarnames(FontObject *self) {
|
|||
}
|
||||
|
||||
for (j = 0; j < num_namedstyles; j++) {
|
||||
if (PyList_GetItem(list_names, j) != NULL) {
|
||||
if (PyList_GetItemRef(list_names, j) != NULL) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user