mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +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
|
||||
|
||||
from PIL import Image
|
||||
|
||||
im = Image.new('L', (999999, 999999), 0)
|
||||
import sys
|
||||
|
||||
|
||||
if sys.maxsize < 2**32:
|
||||
im = Image.new('L', (999999, 999999), 0)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user