Fix implicient integer conversion, -Wshorten64-to-32
Fix implicient integer conversion, -Wshorten64-to-32