blob: 3a817faaa6ab2e11b98378bb6745fd516894aa82 [file] [log] [blame]
Patrick Williamsc0f7c042017-02-23 20:41:17 -06001nss does not build on mips with clang because wrong types are used?
2
3pqg.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
7Signed-off-by: Khem Raj <raj.khem@gmail.com>
8Upstream-Status: Pending
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08009Index: nss-3.37.1/nss/lib/freebl/pqg.c
Patrick Williamsc0f7c042017-02-23 20:41:17 -060010===================================================================
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080011--- 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 Williamsc0f7c042017-02-23 20:41:17 -060014
15 static SECStatus
Brad Bishop6e60e8b2018-02-01 10:27:11 -050016 addToSeed(const SECItem *seed,
17- unsigned long addend,
18- int seedlen, /* g in 186-1 */
Patrick Williamsc0f7c042017-02-23 20:41:17 -060019+ unsigned long long addend,
20+ int seedlen, /* g in 186-1 */
Brad Bishop6e60e8b2018-02-01 10:27:11 -050021 SECItem *seedout)
Patrick Williamsc0f7c042017-02-23 20:41:17 -060022 {
23 mp_int s, sum, modulus, tmp;