aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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--;