From 2b0acbdd1e906aa16a9989ac42fe6d8ad54bf430 Mon Sep 17 00:00:00 2001 From: Martchus Date: Fri, 8 Mar 2019 17:44:20 +0100 Subject: [PATCH] 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). --- lib/binary/reflector.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/binary/reflector.h b/lib/binary/reflector.h index e57b862..f78a33e 100644 --- a/lib/binary/reflector.h +++ b/lib/binary/reflector.h @@ -199,7 +199,7 @@ template (pointer.get()); + const auto id = reinterpret_cast(pointer.get()); const auto bigId = id >= 0x80000000000000; auto &alreadyWritten = m_pointer[id]; byte mode = alreadyWritten ? 2 : 1;