Skip to content
Snippets Groups Projects
Commit d75a4bec authored by g0dil's avatar g0dil
Browse files

Scheduler/Console: Fix bit-number-lookup-magic to work under 64bit

parent 063b81e6
No related branches found
No related tags found
No related merge requests found
...@@ -136,7 +136,7 @@ prefix_ std::ostream & senf::console::operator<<(std::ostream & os, Token const ...@@ -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 }; 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 // We need to check token.type() against 0 explicitly since 0 and 1 will both be mapped to 0
os << tokenTypeName[ token.type() os << tokenTypeName[ token.type()
? bitPosition[((token.type() & -token.type()) * 0x077CB531UL) >> 27] ? bitPosition[(((token.type() & -token.type()) * 0x077CB531UL) >> 27) & 31]
: 0 ] : 0 ]
<< "('" << "('"
<< token.value() << token.value()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment