Cast pointer to the right type on non 64-bit architectures

That could explain why the tests sometimes fail under armv7l (before
making the fix for big pointer IDs).
This commit is contained in:
Martchus 2019-03-08 17:44:20 +01:00
parent 0bf19df0d9
commit 2b0acbdd1e
1 changed files with 1 additions and 1 deletions

View File

@ -199,7 +199,7 @@ template <typename Type, Traits::EnableIf<Traits::IsSpecializingAnyOf<Type, std:
writeByte(0);
return;
}
const auto id = reinterpret_cast<uint64>(pointer.get());
const auto id = reinterpret_cast<std::uintptr_t>(pointer.get());
const auto bigId = id >= 0x80000000000000;
auto &alreadyWritten = m_pointer[id];
byte mode = alreadyWritten ? 2 : 1;