summaryrefslogtreecommitdiffhomepage
path: root/proto-ft
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-07-23 17:17:47 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-07-23 17:17:47 +0200
commitda4a8fd79f951aba9a4ec67fce0fd046e0ca37ca (patch)
tree2b742c296adcbc4648402b20658a823e1c44f794 /proto-ft
parent796c56ab38c39d25af4c8cd73f9c65ff648ef308 (diff)
proto/freetrack: fix typo
Diffstat (limited to 'proto-ft')
-rw-r--r--proto-ft/ftnoir_protocol_ft.cpp4
1 files changed, 2 insertions, 2 deletions
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, "");