mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 01:47:47 +03:00 
			
		
		
		
	use mode structs in Reduce.c
This commit is contained in:
		
							parent
							
								
									00f6ecbfce
								
							
						
					
					
						commit
						adf97ece55
					
				| 
						 | 
				
			
			@ -1452,7 +1452,7 @@ ImagingReduce(Imaging imIn, int xscale, int yscale, int box[4]) {
 | 
			
		|||
    ImagingSectionCookie cookie;
 | 
			
		||||
    Imaging imOut = NULL;
 | 
			
		||||
 | 
			
		||||
    if (strcmp(imIn->mode, "P") == 0 || strcmp(imIn->mode, "1") == 0) {
 | 
			
		||||
    if (imIn->mode == IMAGING_MODE_P || imIn->mode == IMAGING_MODE_1) {
 | 
			
		||||
        return (Imaging)ImagingError_ModeError();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user