diff options
author | Kevin B Kenny <kennykb@acm.org> | 2005-12-27 18:10:11 (GMT) |
---|---|---|
committer | Kevin B Kenny <kennykb@acm.org> | 2005-12-27 18:10:11 (GMT) |
commit | faf5b2a1486bab42c4c1f954aa4d784c3adbf0a7 (patch) | |
tree | 29de82eb32f51f9f362059461df11fb11ad7dd3b /libtommath/bn_mp_add_d.c | |
parent | 98036f8f9d6591f75cbbb744ae789e53250d2459 (diff) | |
download | tcl-faf5b2a1486bab42c4c1f954aa4d784c3adbf0a7.zip tcl-faf5b2a1486bab42c4c1f954aa4d784c3adbf0a7.tar.gz tcl-faf5b2a1486bab42c4c1f954aa4d784c3adbf0a7.tar.bz2 |
Merge changes
Diffstat (limited to 'libtommath/bn_mp_add_d.c')
-rw-r--r-- | libtommath/bn_mp_add_d.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libtommath/bn_mp_add_d.c b/libtommath/bn_mp_add_d.c index d472353..38ae268 100644 --- a/libtommath/bn_mp_add_d.c +++ b/libtommath/bn_mp_add_d.c @@ -41,6 +41,9 @@ mp_add_d (mp_int * a, mp_digit b, mp_int * c) a->sign = MP_NEG; c->sign = (c->used) ? MP_NEG : MP_ZPOS; + /* clamp */ + mp_clamp(c); + return res; } @@ -106,5 +109,4 @@ 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.2 $ */ -/* $Date: 2005/10/08 14:42:54 $ */ +/* Tom's revision is 1.2 */ |