Commit e6a03079 authored by Anton Bukov's avatar Anton Bukov

Improve bits

parent be7e727a
...@@ -684,7 +684,7 @@ namespace boolinq { ...@@ -684,7 +684,7 @@ namespace boolinq {
} }
tuple.index++; tuple.index++;
return ((ptr[byteIndex] & (1 << bitIndex)) != 0) ? 1 : 0; return (ptr[byteIndex] >> bitIndex) & 1;
} }
); );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment