aboutsummaryrefslogtreecommitdiffstats
path: root/mpi
diff options
context:
space:
mode:
Diffstat (limited to 'mpi')
-rw-r--r--mpi/ChangeLog6
-rw-r--r--mpi/mpiutil.c3
2 files changed, 9 insertions, 0 deletions
diff --git a/mpi/ChangeLog b/mpi/ChangeLog
index 0519495c9..a52381d05 100644
--- a/mpi/ChangeLog
+++ b/mpi/ChangeLog
@@ -1,3 +1,9 @@
+Fri Jun 26 11:19:06 1998 Werner Koch ([email protected])
+
+ * mpiutil.c (mpi_alloc): set nbits to 0.
+ (mpi_alloc_secure): Ditto.
+ (mpi_clear): Ditto.
+
Thu Jun 25 11:50:01 1998 Werner Koch ([email protected])
* mips3/*.S: New
diff --git a/mpi/mpiutil.c b/mpi/mpiutil.c
index 92b16538f..231e5d578 100644
--- a/mpi/mpiutil.c
+++ b/mpi/mpiutil.c
@@ -64,6 +64,7 @@ mpi_alloc( unsigned nlimbs )
a->nlimbs = 0;
a->sign = 0;
a->flags = 0;
+ a->nbits = 0;
return a;
}
@@ -96,6 +97,7 @@ mpi_alloc_secure( unsigned nlimbs )
a->flags |= 1;
a->nlimbs = 0;
a->sign = 0;
+ a->nbits = 0;
return a;
}
@@ -175,6 +177,7 @@ void
mpi_clear( MPI a )
{
a->nlimbs = 0;
+ a->nbits = 0;
}