endif 可以看到在32位系统下size_t是一个unsigned int,在64位系统下等于一个unsigned long long int,你的问题就是大数据类型截断损失,应该使用正确类型作为左值。