summaryrefslogtreecommitdiffstats
path: root/libtommath/bn_mp_add_d.c
diff options
context:
space:
mode:
authorKevin B Kenny <kennykb@acm.org>2005-12-27 17:59:37 (GMT)
committerKevin B Kenny <kennykb@acm.org>2005-12-27 17:59:37 (GMT)
commitf8d727ad30b41d65af68d08177e4689d03f2f7f7 (patch)
treec5c780d07b7da7ee1542cef409ca020ecad97c63 /libtommath/bn_mp_add_d.c
parent159f55fe9e0f75c0e2945dae53177a04b819553d (diff)
downloadtcl-f8d727ad30b41d65af68d08177e4689d03f2f7f7.zip
tcl-f8d727ad30b41d65af68d08177e4689d03f2f7f7.tar.gz
tcl-f8d727ad30b41d65af68d08177e4689d03f2f7f7.tar.bz2
Import of libtommath 0.37
Diffstat (limited to 'libtommath/bn_mp_add_d.c')
-rw-r--r--libtommath/bn_mp_add_d.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libtommath/bn_mp_add_d.c b/libtommath/bn_mp_add_d.c
index fde3cee..3dba671 100644
--- a/libtommath/bn_mp_add_d.c
+++ b/libtommath/bn_mp_add_d.c
@@ -40,6 +40,9 @@ mp_add_d (mp_int * a, mp_digit b, mp_int * c)
/* fix sign */
a->sign = c->sign = MP_NEG;
+ /* clamp */
+ mp_clamp(c);
+
return res;
}
@@ -105,5 +108,5 @@ mp_add_d (mp_int * a, mp_digit b, mp_int * c)
#endif
/* $Source: /root/tcl/repos-to-convert/tcl/libtommath/bn_mp_add_d.c,v $ */
-/* $Revision: 1.1.1.2 $ */
-/* $Date: 2005/09/26 16:31:56 $ */
+/* $Revision: 1.1.1.3 $ */
+/* $Date: 2005/12/27 17:59:37 $ */