diff options
author | Jean-Luc Bonnafoux <jeanluc.bonnafoux@wanadoo.fr> | 2020-02-24 23:04:44 +0000 |
---|---|---|
committer | Jean-Luc Bonnafoux <jeanluc.bonnafoux@wanadoo.fr> | 2020-02-24 23:04:44 +0000 |
commit | 820bb50cd59efe8dd9e8836b5019aeda3c113de0 (patch) | |
tree | 0a4cf7ed50a9529f214841c5a9c1a518453e3ad5 | |
parent | 2f32ce5bb19447f046cb2f0e181c512aa4a8c775 (diff) | |
download | nss-hg-820bb50cd59efe8dd9e8836b5019aeda3c113de0.tar.gz |
Bug 1617387 fix compiler warning r=jcj
Differential Revision: https://phabricator.services.mozilla.com/D63771
-rw-r--r-- | lib/cryptohi/secsign.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cryptohi/secsign.c b/lib/cryptohi/secsign.c index 8a8d0f664..125dfd913 100644 --- a/lib/cryptohi/secsign.c +++ b/lib/cryptohi/secsign.c @@ -727,7 +727,7 @@ sec_CreateRSAPSSParameters(PLArenaPool *arena, } /* The specified salt length is too long */ - if (saltLength > modBytes - hashLength - 2) { + if (saltLength > (unsigned long)(modBytes - hashLength - 2)) { PORT_SetError(SEC_ERROR_INVALID_ARGS); return NULL; } |