mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-10-31 16:07:30 +03:00 
			
		
		
		
	Guard to prevent 64 bit machines from crashing
This commit is contained in:
		
							parent
							
								
									8d5a1c2a19
								
							
						
					
					
						commit
						0a160e44d8
					
				|  | @ -1,7 +1,10 @@ | ||||||
| #!/usr/bin/env python | #!/usr/bin/env python | ||||||
| 
 | 
 | ||||||
| from PIL import Image | from PIL import Image | ||||||
| 
 | import sys | ||||||
| im = Image.new('L', (999999, 999999), 0) | 
 | ||||||
|  | 
 | ||||||
|  | if sys.maxsize < 2**32: | ||||||
|  |     im = Image.new('L', (999999, 999999), 0) | ||||||
| 		 | 		 | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user