We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d41be91 + 546ed6a commit b1f5288Copy full SHA for b1f5288
ortools/constraint_solver/model_cache.h
@@ -51,7 +51,8 @@ inline uint64_t Hash1(int value) { return Hash1(static_cast<uint32_t>(value)); }
51
52
inline uint64_t Hash1(void* const ptr) {
53
#if defined(__x86_64__) || defined(_M_X64) || defined(__powerpc64__) || \
54
- defined(__aarch64__) || (defined(_MIPS_SZPTR) && (_MIPS_SZPTR == 64))
+ defined(__aarch64__) || (defined(_MIPS_SZPTR) && (_MIPS_SZPTR == 64)) || \
55
+ (defined(INTPTR_MAX) && defined(INT64_MAX) && (INTPTR_MAX == INT64_MAX))
56
return Hash1(reinterpret_cast<uint64_t>(ptr));
57
#else
58
return Hash1(reinterpret_cast<uint32_t>(ptr));
0 commit comments