我有一个uint64变量...但我想传递它的函数只接受uint32.
我尝试使用static unsigned int ToUInt32(uint64 variable); 引用MSDN,但它给出了精度丢失的错误.
有没有办法将uint64转换为uint32而不丢失任何数据?
c++
c++ ×1