ripple of LSB from compare-operations, successful
[ieee754fpu.git] / src / ieee754 / part / test / test_partsig.py
index 2dd76bc8f22264507b39315040fc96db26195208..0229794e4c8104e0d124bbf5d0fa682e4de459bd 100644 (file)
@@ -131,7 +131,7 @@ class TestPartitionPoints(unittest.TestCase):
                     for i, mask in enumerate(mask_list):
                         if test_fn(a, b, mask):
                             # OR y with the lowest set bit in the mask
-                            y |= (maskbit_list[i] & ~(maskbit_list[i]-1))
+                            y |= maskbit_list[i]
                     # check the result
                     outval = (yield getattr(module, "%s_output" % mod_attr))
                     msg = f"{msg_prefix}: {mod_attr} 0x{a:X} == 0x{b:X}" + \