在开发 NDK 过程中,会遇到如下问题,可以将 int 改为 uintptr_t 类型
cast from pointer to smaller type 'int' loses information
造成这样的原因是:
指针都是 8 个字节,而 int 为 4 个字节
在开发 NDK 过程中,会遇到如下问题,可以将 int 改为 uintptr_t 类型
cast from pointer to smaller type 'int' loses information
造成这样的原因是:
指针都是 8 个字节,而 int 为 4 个字节