]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
cyassl: fix compiler warning on type conversion
authorDaniel Stenberg <daniel@haxx.se>
Mon, 14 Dec 2015 23:36:08 +0000 (00:36 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 14 Dec 2015 23:36:08 +0000 (00:36 +0100)
lib/vtls/cyassl.c

index 052996e14637a3c4dba061b912a6b44f4e19814b..f51b0419210c898fda45413c62df3db8ebd352f3 100644 (file)
@@ -780,7 +780,7 @@ void Curl_cyassl_sha256sum(const unsigned char *tmp, /* input */
   Sha256 SHA256pw;
   (void)unused;
   InitSha256(&SHA256pw);
-  Sha256Update(&SHA256pw, tmp, tmplen);
+  Sha256Update(&SHA256pw, tmp, (word32)tmplen);
   Sha256Final(&SHA256pw, sha256sum);
 }