TBits wrong behaviour OR - XOR
Original Reporter info from Mantis: apeoperaio @andrea.mauri
-
Reporter name: Andrea Mauri
Original Reporter info from Mantis: apeoperaio @andrea.mauri
- Reporter name: Andrea Mauri
Description:
Using ORBits and XorBits procedure wrong results are given.
I create a TBits (b1) and then I set 16 bits as 1. Then I create 2 TBits (b2 and b3) with size 164, I use .OrBits to OR b1 with b2 and b3. I expect that b2 and b3 will result in a TBits with size 164 but with only first 16 bits as 1. What I got is different. A lot of bits between bits[16] and bits[163] are set to 1.
You can easily check it using the attached test project.
Mantis conversion info:
- Mantis ID: 25289
- OS: Windows
- OS Build: 7
- Platform: 64bit
- Version: 2.6.2
- Fixed in version: 3.0.0
- Fixed in revision: 26121 (#43c96cd8)
- Monitored by: » @andrea.mauri (Andrea Mauri)