Fix left shift operator.

Fixes #8741.

[SVN r84925]
This commit is contained in:
John Maddock
2013-07-01 17:06:12 +00:00
parent 573f35f5a9
commit f2821a0231
2 changed files with 8 additions and 10 deletions

View File

@@ -173,6 +173,12 @@ struct tester
{
BOOST_CHECK_EQUAL(mpz_int(a << i).str(), test_type(a1 << i).str());
}
else if(!is_checked_cpp_int<test_type>::value)
{
test_type t1(mpz_int(a << i).str());
test_type t2 = a1 << i;
BOOST_CHECK_EQUAL(t1, t2);
}
BOOST_CHECK_EQUAL(mpz_int(a >> i).str(), test_type(a1 >> i).str());
}
// gcd/lcm