possible = problem fix. NEEDS TO BE TESTED

master
edwin 4 years ago
parent 2bd36a17c2
commit 2bb7bc2ed5

@ -47,8 +47,9 @@ struct BitField
*/
BitField& operator =(T v)
{
//TODO: test = problem with |= instead of =
// mask creation for v : https://stackoverflow.com/questions/1392059/algorithm-to-generate-bit-mask
_raw = ((v & ((1ULL << SIZE)-1)) << START) ;
_raw |= ((v & ((1ULL << SIZE)-1)) << START) ;
return *this;
}

Loading…
Cancel
Save