mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-01 00:17:27 +03:00 
			
		
		
		
	64 bit proof ImagingNew
This commit is contained in:
		
							parent
							
								
									8f63a27c65
								
							
						
					
					
						commit
						cee97b83cc
					
				|  | @ -369,7 +369,7 @@ ImagingNew(const char* mode, int xsize, int ysize) | ||||||
|     } else |     } else | ||||||
|         bytes = strlen(mode); /* close enough */ |         bytes = strlen(mode); /* close enough */ | ||||||
| 
 | 
 | ||||||
|     if ((long) xsize * ysize * bytes <= THRESHOLD) { |     if ((Py_ssize_t) xsize * ysize * bytes <= THRESHOLD) { | ||||||
|         im = ImagingNewBlock(mode, xsize, ysize); |         im = ImagingNewBlock(mode, xsize, ysize); | ||||||
|         if (im) |         if (im) | ||||||
|             return im; |             return im; | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user