aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Satiro <raysatiro@yahoo.com>2015-04-05 02:25:33 -0400
committerDaniel Stenberg <daniel@haxx.se>2015-04-06 17:55:48 +0200
commitc3101ae287fcfc420bdd816f1eaf39c8dc9b242b (patch)
treeb1b8a1e4123a78195a03f7db1b59e55398213c13
parentd363c079128c6d5d9ad1bda8b1efe3c3de170216 (diff)
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.
-rw-r--r--lib/x509asn1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/x509asn1.c b/lib/x509asn1.c
index e18218d3d..a163568ed 100644
--- a/lib/x509asn1.c
+++ b/lib/x509asn1.c
@@ -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--;