Fix compilation crash instroduced in gh-1673 on 32 bit python.
Merge pull request #1682 from nouiz/fix_crash32bit

Fix compilation crash instroduced in gh-1673 on 32 bit python.