aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine/gnump/gmp_wrap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/gnump/gmp_wrap.cpp')
-rw-r--r--src/engine/gnump/gmp_wrap.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/engine/gnump/gmp_wrap.cpp b/src/engine/gnump/gmp_wrap.cpp
index 39d107a78..107823ab3 100644
--- a/src/engine/gnump/gmp_wrap.cpp
+++ b/src/engine/gnump/gmp_wrap.cpp
@@ -32,7 +32,7 @@ GMP_MPZ::GMP_MPZ(const BigInt& in)
/*
* GMP_MPZ Constructor
*/
-GMP_MPZ::GMP_MPZ(const byte in[], u32bit length)
+GMP_MPZ::GMP_MPZ(const byte in[], size_t length)
{
mpz_init(value);
mpz_import(value, length, 1, 1, 0, 0, in);
@@ -66,7 +66,7 @@ GMP_MPZ& GMP_MPZ::operator=(const GMP_MPZ& other)
/*
* Export the mpz_t as a bytestring
*/
-void GMP_MPZ::encode(byte out[], u32bit length) const
+void GMP_MPZ::encode(byte out[], size_t length) const
{
size_t dummy = 0;
mpz_export(out + (length - bytes()), &dummy, 1, 1, 0, 0, value);
@@ -75,7 +75,7 @@ void GMP_MPZ::encode(byte out[], u32bit length) const
/*
* Return the number of significant bytes
*/
-u32bit GMP_MPZ::bytes() const
+size_t GMP_MPZ::bytes() const
{
return ((mpz_sizeinbase(value, 2) + 7) / 8);
}