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
@ -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…
x
Reference in New Issue
Block a user