From da4a8fd79f951aba9a4ec67fce0fd046e0ca37ca Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 23 Jul 2017 17:17:47 +0200 Subject: proto/freetrack: fix typo --- proto-ft/ftnoir_protocol_ft.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'proto-ft') diff --git a/proto-ft/ftnoir_protocol_ft.cpp b/proto-ft/ftnoir_protocol_ft.cpp index 9b5113a6..7a37a161 100644 --- a/proto-ft/ftnoir_protocol_ft.cpp +++ b/proto-ft/ftnoir_protocol_ft.cpp @@ -110,13 +110,13 @@ void freetrack::pose(const double* headpose) { const std::uintptr_t addr = (std::uintptr_t)(void*)&pMemData->table[0]; - const std::uintptr_t addr_ = addr & (sizeof(LONG)-1); + const std::uintptr_t addr_ = addr & ~(sizeof(LONG)-1u); // the data `happens' to be aligned by virtue of element ordering // inside FTHeap. there's no deeper reason behind it. if (addr != addr_) - assert("!unaligned access"); + assert(!"unaligned access"); static_assert(sizeof(char[8])/sizeof(LONG) == 2, ""); -- cgit v1.2.3