出错警告原因:在64位系统中size_t代表的是unsigned long类型,跟unsigned int类型不同 因此会报警告或者错误不安全的类型转换 如果是代码平台移植的过程中出现的警告那么就需要将编译平台修改为32位即可,因为在32位系统中size_t类型的大小为unsigned int类型