summaryrefslogtreecommitdiffstats
path: root/mpi
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>1999-01-09 16:06:59 +0100
committerWerner Koch <wk@gnupg.org>1999-01-09 16:06:59 +0100
commit002b1a8632d2c2795deb4682ba6db8be120db9b4 (patch)
tree33a0e8c96550f24d9aa1747b05a9f471f975e7a7 /mpi
parentSee ChangeLog: Thu Jan 7 18:00:58 CET 1999 Werner Koch (diff)
downloadgnupg2-002b1a8632d2c2795deb4682ba6db8be120db9b4.tar.xz
gnupg2-002b1a8632d2c2795deb4682ba6db8be120db9b4.zip
See ChangeLog: Sat Jan 9 16:02:23 CET 1999 Werner Koch
Diffstat (limited to 'mpi')
-rw-r--r--mpi/ChangeLog4
-rw-r--r--mpi/mpi-bit.c2
-rw-r--r--mpi/mpi-cmp.c3
3 files changed, 7 insertions, 2 deletions
diff --git a/mpi/ChangeLog b/mpi/ChangeLog
index 9d79660e3..2a49d403b 100644
--- a/mpi/ChangeLog
+++ b/mpi/ChangeLog
@@ -1,3 +1,7 @@
+Sat Jan 9 16:02:23 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
+
+ * mpi-cmp.c (mpi_cmp_ui): Normalized the arg.
+
Thu Jan 7 18:00:58 CET 1999 Werner Koch <wk@isil.d.shuttle.de>
* mpi-bit.c (mpi_normalize): New.
diff --git a/mpi/mpi-bit.c b/mpi/mpi-bit.c
index 227a929bb..00aa5d086 100644
--- a/mpi/mpi-bit.c
+++ b/mpi/mpi-bit.c
@@ -1,5 +1,5 @@
/* mpi-bit.c - MPI bit level fucntions
- * Copyright (C) 1998 Free Software Foundation, Inc.
+ * Copyright (C) 1998, 1999 Free Software Foundation, Inc.
*
* This file is part of GnuPG.
*
diff --git a/mpi/mpi-cmp.c b/mpi/mpi-cmp.c
index 3c3c76b7c..2a6cdbf1c 100644
--- a/mpi/mpi-cmp.c
+++ b/mpi/mpi-cmp.c
@@ -1,5 +1,5 @@
/* mpi-cmp.c - MPI functions
- * Copyright (C) 1998 Free Software Foundation, Inc.
+ * Copyright (C) 1998, 1999 Free Software Foundation, Inc.
*
* This file is part of GnuPG.
*
@@ -28,6 +28,7 @@ mpi_cmp_ui( MPI u, unsigned long v )
{
mpi_limb_t limb = v;
+ mpi_normalize( u );
if( !u->nlimbs && !limb )
return 0;
if( u->sign )