Bug 1561337: fix compiler warning r=jcj
authorJean-Luc Bonnafoux <jeanluc.bonnafoux@wanadoo.fr>
Wed, 19 Feb 2020 19:34:33 +0000
changeset 15511 4c771e6a79db809089307ccb72f10fa55f8457e5
parent 15510 9e0d34a6cf91f52f7dbc5622a79777d6642fad54
child 15512 a5e8c14016cdcb17bb88226718c8aeb41cbb468f
push id3673
push userjjones@mozilla.com
push dateWed, 19 Feb 2020 19:34:59 +0000
reviewersjcj
bugs1561337
Bug 1561337: fix compiler warning r=jcj Differential Revision: https://phabricator.services.mozilla.com/D62999
lib/freebl/ecl/ecp_25519.c
--- a/lib/freebl/ecl/ecp_25519.c
+++ b/lib/freebl/ecl/ecp_25519.c
@@ -22,17 +22,17 @@
 /*
  * point validation is not necessary in general. But this checks a point (px)
  * against some known bad values.
  */
 SECStatus
 ec_Curve25519_pt_validate(const SECItem *px)
 {
     PRUint8 *p;
-    int i;
+    PRUint64 i;
     PRUint8 forbiddenValues[12][32] = {
         { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
           0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
           0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
           0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },
         { 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
           0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
           0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,