From 5911e300ff885ec570b59eaef7d8f19785e16fab Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 26 Jun 1998 09:45:36 +0000 Subject: bug fixes --- mpi/ChangeLog | 6 ++++++ mpi/mpiutil.c | 3 +++ 2 files changed, 9 insertions(+) (limited to 'mpi') 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 (wk@isil.d.shuttle.de) + + * mpiutil.c (mpi_alloc): set nbits to 0. + (mpi_alloc_secure): Ditto. + (mpi_clear): Ditto. + Thu Jun 25 11:50:01 1998 Werner Koch (wk@isil.d.shuttle.de) * 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; } -- cgit v1.2.3