From: g0dil Date: Wed, 26 Nov 2008 12:57:19 +0000 (+0000) Subject: Scheduler/Console: Fix bit-number-lookup-magic to work under 64bit X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=9eef67d8d72e604a938c0335a7d8230a0fb630ca;p=senf.git Scheduler/Console: Fix bit-number-lookup-magic to work under 64bit git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@982 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/Scheduler/Console/Parse.cc b/Scheduler/Console/Parse.cc index 48cd0a5..dc1dbce 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()