mirror of
https://github.com/curl/curl.git
synced 2026-07-23 16:27:17 +03:00
x509asn1: Silence x64 loss-of-data warning on RSA key length assignment
The key length in bits will always fit in an unsigned long so the loss-of-data warning assigning the result of x64 pointer arithmetic to an unsigned long is unnecessary.
This commit is contained in:
parent
d363c07912
commit
c3101ae287
1 changed files with 1 additions and 1 deletions
|
|
@ -820,7 +820,7 @@ static void do_pubkey(struct SessionHandle * data, int certnum,
|
|||
/* Compute key length. */
|
||||
for(q = elem.beg; !*q && q < elem.end; q++)
|
||||
;
|
||||
len = (elem.end - q) * 8;
|
||||
len = (unsigned long)((elem.end - q) * 8);
|
||||
if(len)
|
||||
for(i = *(unsigned char *) q; !(i & 0x80); i <<= 1)
|
||||
len--;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue