Get rid of a MSVC warning about reinterpret_casting an int.
Bug
MODIFY
testing/unittest/testframework.h
testing/unittest/testframework.h
@@ -124,7 +124,8 @@ public:
__host__ __device__
operator void *() const
{
- return reinterpret_cast<void *>(value[0]);
+ // static cast first to avoid MSVC warning C4312
+ return reinterpret_cast<void *>(static_cast<std::size_t>(value[0]));
}
#define DEFINE_OPERATOR(op) \

Get rid of a MSVC warning about reinterpret_casting an int.

Bug 200467944