Make most implicit integer truncations and sign conversions explicit
[folly.git] / folly / ssl / test / OpenSSLHashTest.cpp
index a4d4aed4e9411a8400755750d0b01d4ba09473b5..c63bfd8652fc885c39b1c800a000128365c57502 100644 (file)
@@ -58,9 +58,12 @@ TEST_F(OpenSSLHashTest, hmac_sha256) {
   auto combined = ByteRange(StringPiece("foobar"));
   HMAC(
       EVP_sha256(),
-      key.data(), key.size(),
-      combined.data(), combined.size(),
-      expected.data(), nullptr);
+      key.data(),
+      int(key.size()),
+      combined.data(),
+      combined.size(),
+      expected.data(),
+      nullptr);
 
   auto out = vector<uint8_t>(32);
   OpenSSLHash::hmac_sha256(range(out), key, buf);