Fix the implicit conversion warnings on 64-bit platforms.