Overview
| Artifact ID: | dfe27f79b6180436d32f08b3e2c0c2cc052ef627 |
|---|---|
| Ticket: | 1606554fffffffffffffffffffffffffffffffff
tommath 0.39 update breaks HEAD build |
| User & Date: | das on 2006-12-01 12:59:52 |
Changes
- icomment:
Logged In: YES user_id=90580 Originator: YES the committed warning fixes were as follows: Index: bn_mp_div_d.c =================================================================== RCS file: /cvsroot/tcl/libtommath/bn_mp_div_d.c,v --- bn_mp_div_d.c1 Dec 2006 00:31:32 -00001.2 +++ bn_mp_div_d.c1 Dec 2006 05:47:47 -00001.3 @@ -20,7 +20,7 @@ static int s_is_power_of_two(mp_digit b, int x; /* quick out - if (b & (b-1)) isn't zero, b isn't a power of two */ - if ( b & (b-1) != 0 ) { + if ((b & (b-1)) != 0) { return 0; } for (x = 1; x < DIGIT_BIT; x++) { Index: bn_mp_sqrt.c =================================================================== RCS file: /cvsroot/tcl/libtommath/bn_mp_sqrt.c,v --- bn_mp_sqrt.c1 Dec 2006 00:31:32 -00001.4 +++ bn_mp_sqrt.c1 Dec 2006 05:48:23 -00001.5 @@ -69,7 +69,7 @@ int mp_sqrt(mp_int *arg, mp_int *ret) if (dig) { t1.used = i+2; d -= ldexp((double) dig, DIGIT_BIT); - if (d != 0,0) { + if (d != 0.0) { t1.dp[i+1] = dig; t1.dp[i] = ((mp_digit) d) - 1; } else { - login: "das"
- mimetype: "text/plain"
- username: "das"