mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 01:47:47 +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
 | 
					#define PY_SSIZE_T_CLEAN
 | 
				
			||||||
#include "Python.h"
 | 
					#include "Python.h"
 | 
				
			||||||
 | 
					#include "thirdparty/pythoncapi_compat.h"
 | 
				
			||||||
#include "libImaging/Imaging.h"
 | 
					#include "libImaging/Imaging.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <ft2build.h>
 | 
					#include <ft2build.h>
 | 
				
			||||||
| 
						 | 
					@ -1219,7 +1220,7 @@ font_getvarnames(FontObject *self) {
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        for (j = 0; j < num_namedstyles; j++) {
 | 
					        for (j = 0; j < num_namedstyles; j++) {
 | 
				
			||||||
            if (PyList_GetItem(list_names, j) != NULL) {
 | 
					            if (PyList_GetItemRef(list_names, j) != NULL) {
 | 
				
			||||||
                continue;
 | 
					                continue;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user