Guard to prevent 64 bit machines from crashing

This commit is contained in:
wiredfool 2014-07-07 11:22:11 -07:00
parent 8d5a1c2a19
commit 0a160e44d8

View File

@ -1,7 +1,10 @@
#!/usr/bin/env python
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)