diff options
author | Werner Koch <wk@gnupg.org> | 1998-06-15 17:41:04 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 1998-06-15 17:41:04 +0200 |
commit | 6e1ca6b80fb50ff5e1c065b7ac12635487b4a6d2 (patch) | |
tree | 7c4a888893a91b59753b3d89e59832f8c24ba039 /mpi | |
parent | gnupg extension are now working (diff) | |
download | gnupg2-6e1ca6b80fb50ff5e1c065b7ac12635487b4a6d2.tar.xz gnupg2-6e1ca6b80fb50ff5e1c065b7ac12635487b4a6d2.zip |
extensions are now working and fixed a lot of bugs
Diffstat (limited to 'mpi')
-rw-r--r-- | mpi/g10m.c | 3 | ||||
-rw-r--r-- | mpi/mpiutil.c | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/mpi/g10m.c b/mpi/g10m.c index 79d571462..6cad79587 100644 --- a/mpi/g10m.c +++ b/mpi/g10m.c @@ -25,6 +25,9 @@ #define _g10lib_INTERNAL 1 #include "g10lib.h" + +const char *g10m_revision_string(int dummy) { return "$Revision$"; } + MPI g10m_new( unsigned nbits ) { diff --git a/mpi/mpiutil.c b/mpi/mpiutil.c index 2227cfc19..7c661094f 100644 --- a/mpi/mpiutil.c +++ b/mpi/mpiutil.c @@ -252,6 +252,7 @@ mpi_copy( MPI a ) b->nlimbs = a->nlimbs; b->sign = a->sign; b->secure = a->secure; + b->nbits = a->nbits; for(i=0; i < b->nlimbs; i++ ) b->d[i] = a->d[i]; } @@ -273,6 +274,7 @@ mpi_set( MPI w, MPI u) up = u->d; MPN_COPY( wp, up, usize ); w->nlimbs = usize; + w->nbits = u->nbits; w->sign = usign; } @@ -284,6 +286,7 @@ mpi_set_ui( MPI w, unsigned long u) w->d[0] = u; w->nlimbs = u? 1:0; w->sign = 0; + w->nbits = 0; } |