Fix compile error when pointer size is larger than int