More lossy integer conversion fixes, for 32bit builds.  Based on patch by Jan Weiß.
7 files changed