Fixing compilation with -Wconversion on 64-bit systems.