diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-08-29 19:52:35 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-08-29 19:52:35 (GMT) |
commit | ff1658cbdd0982b1fe292259ef37bc9abb41a932 (patch) | |
tree | 915f0c4344c7f680ee86ba8cce24deb9b0b40bc2 /libtommath/bn_mp_add_d.c | |
parent | 2adcff3e5ba6e09366ef4208ab81768803ba15bd (diff) | |
download | tcl-ff1658cbdd0982b1fe292259ef37bc9abb41a932.zip tcl-ff1658cbdd0982b1fe292259ef37bc9abb41a932.tar.gz tcl-ff1658cbdd0982b1fe292259ef37bc9abb41a932.tar.bz2 |
libtommath 1.0.1 rc 2
Diffstat (limited to 'libtommath/bn_mp_add_d.c')
-rw-r--r-- | libtommath/bn_mp_add_d.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libtommath/bn_mp_add_d.c b/libtommath/bn_mp_add_d.c index 4d4e1df..6b9dbef 100644 --- a/libtommath/bn_mp_add_d.c +++ b/libtommath/bn_mp_add_d.c @@ -49,9 +49,6 @@ mp_add_d (mp_int * a, mp_digit b, mp_int * c) /* old number of used digits in c */ oldused = c->used; - /* sign always positive */ - c->sign = MP_ZPOS; - /* source alias */ tmpa = a->dp; @@ -96,6 +93,9 @@ mp_add_d (mp_int * a, mp_digit b, mp_int * c) ix = 1; } + /* sign always positive */ + c->sign = MP_ZPOS; + /* now zero to oldused */ while (ix++ < oldused) { *tmpc++ = 0; @@ -107,6 +107,6 @@ mp_add_d (mp_int * a, mp_digit b, mp_int * c) #endif -/* $Source$ */ -/* $Revision$ */ -/* $Date$ */ +/* ref: HEAD -> release/1.0.1, tag: v1.0.1-rc2 */ +/* git commit: e8c27ba7df0efb90708029115c94d681dfa7812f */ +/* commit time: 2017-08-29 10:48:46 +0200 */ |