fix issue in big_number shift left operator

This commit is contained in:
Arvid Norberg 2011-11-01 17:06:31 +00:00
parent 3c602e8fe8
commit 4559980c92
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,6 @@ namespace libtorrent
big_number& operator<<=(int n)
{
TORRENT_ASSERT(n >= 0);
if (n > number_size * 8) n = number_size;
int num_bytes = n / 8;
if (num_bytes >= number_size)
{
@ -141,6 +140,7 @@ namespace libtorrent
big_number& operator>>=(int n)
{
TORRENT_ASSERT(n >= 0);
int num_bytes = n / 8;
if (num_bytes >= number_size)
{