线
std::unique_ptr<PHYSFS_sint64> myBuf(new PHYSFS_sint64[PHYSFS_fileLength(myfile)]);
产生警告
warning C4244: 'initializing' : conversion from 'PHYSFS_sint64' to 'unsigned int', possible loss of data
PHYSFS_sint64是一个 typedefsinged long long
PHYSFS_fileLength返回一个PHYSFS_sint64。
所以我不明白为什么当我尝试将 a 分配给 a 时编译器会尝试从signed long longto转换?unsigned intsigned long longsigned long long
当我明确输入signed long long而不是PHYSFS_sint64它时仍然输出相同的警告
我现在是不是很傻?我不明白