Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 1 | nss does not build on mips with clang because wrong types are used? |
| 2 | |
| 3 | pqg.c:339:16: error: comparison of constant 18446744073709551615 with expression of type 'unsigned long' is always true [-Werror,-Wtautological-constant-out-of-range-compare] |
| 4 | if (addend < MP_DIGIT_MAX) { |
| 5 | ~~~~~~ ^ ~~~~~~~~~~~~ |
| 6 | |
| 7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 8 | Upstream-Status: Pending |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 9 | Index: nss-3.37.1/nss/lib/freebl/pqg.c |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 10 | =================================================================== |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 11 | --- nss-3.37.1.orig/nss/lib/freebl/pqg.c |
| 12 | +++ nss-3.37.1/nss/lib/freebl/pqg.c |
| 13 | @@ -326,8 +326,8 @@ generate_h_candidate(SECItem *hit, mp_in |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 14 | |
| 15 | static SECStatus |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 16 | addToSeed(const SECItem *seed, |
| 17 | - unsigned long addend, |
| 18 | - int seedlen, /* g in 186-1 */ |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 19 | + unsigned long long addend, |
| 20 | + int seedlen, /* g in 186-1 */ |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 21 | SECItem *seedout) |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 22 | { |
| 23 | mp_int s, sum, modulus, tmp; |