Commit e0ed83c9 authored by Philip Trettner's avatar Philip Trettner
Browse files

Merge branch 'fix/shift-test-case' into 'develop'

Fixed shift test-case.

See merge request !25
parents a4054c98 178672e7
Pipeline #13376 passed with stage
in 7 minutes and 2 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