Fixed warnings for 64-bit truncated values