fix cast not reported as warning on x86_64 arch