Commit 178672e7 authored by Julius Nehring-Wirxel's avatar Julius Nehring-Wirxel
Browse files

Fixed shift test-case.

parent a4054c98
Pipeline #13379 canceled with stage
in 2 minutes and 55 seconds
......@@ -261,7 +261,7 @@ void check_shift(tg::rng& rng)
assert_eq(fuia, mpia);
// signed overflow is undefined
if (tg::leading_zeros_count(fuia) >= tg::u64(shift))
if (tg::leading_zeros_count(fuia) > tg::u64(shift))
assert_eq(fuia << shift, capped_shift_left(mpia, shift));
assert_eq(fuia >> shift, capped_shift_right(mpia, shift));
......
Supports Markdown
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