summaryrefslogtreecommitdiff
path: root/integer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'integer.cpp')
-rw-r--r--integer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/integer.cpp b/integer.cpp
index ca74190..8a7767e 100644
--- a/integer.cpp
+++ b/integer.cpp
@@ -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);
}
}