fix Integer::Encode

pull/2/head
weidai 2006-03-17 00:38:11 +00:00
parent 922fdeb150
commit 254b0f0d4d
1 changed files with 1 additions and 1 deletions

View File

@ -3111,7 +3111,7 @@ void Integer::Encode(BufferedTransformation &bt, size_t outputLen, Signedness si
else
{
// take two's complement of *this
Integer temp = Integer::Power2(8*UnsignedMin(ByteCount(), outputLen)) + *this;
Integer temp = Integer::Power2(8*STDMAX((size_t)ByteCount(), outputLen)) + *this;
temp.Encode(bt, outputLen, UNSIGNED);
}
}