Fix code generation on 32 bit systems.

Python int limit is different on 32 and 64 bits systems.
e.g: The value 0xffffffff is considered long on 32 bits systems and
int on 64 bits systems.