From d75a4bec93716f936ec29ee7a6f8cff964eefc75 Mon Sep 17 00:00:00 2001 From: g0dil <g0dil@wiback.org> Date: Wed, 26 Nov 2008 12:57:19 +0000 Subject: [PATCH] Scheduler/Console: Fix bit-number-lookup-magic to work under 64bit --- Scheduler/Console/Parse.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scheduler/Console/Parse.cc b/Scheduler/Console/Parse.cc index 48cd0a5da..dc1dbce4a 100644 --- a/Scheduler/Console/Parse.cc +++ b/Scheduler/Console/Parse.cc @@ -136,7 +136,7 @@ prefix_ std::ostream & senf::console::operator<<(std::ostream & os, Token const 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 7, 0, 6, 0, 10 }; // We need to check token.type() against 0 explicitly since 0 and 1 will both be mapped to 0 os << tokenTypeName[ token.type() - ? bitPosition[((token.type() & -token.type()) * 0x077CB531UL) >> 27] + ? bitPosition[(((token.type() & -token.type()) * 0x077CB531UL) >> 27) & 31] : 0 ] << "('" << token.value() -- GitLab