diff options
author | Jack Lloyd <[email protected]> | 2017-08-31 07:13:58 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-08-31 07:13:58 -0400 |
commit | df4287c3c763de14b262ed39d54b3de552adbefb (patch) | |
tree | 10b839bab8d2e36a806951bb2e5e5f0212f7a0f9 /src/tests | |
parent | 17ef09021892afc4c0e9fe7ba97423bf832e6dc5 (diff) |
Fix various MSVC warnings
Based on VC2017 output
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/test_pkcs11_high_level.cpp | 4 | ||||
-rw-r--r-- | src/tests/test_tss.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/tests/test_pkcs11_high_level.cpp b/src/tests/test_pkcs11_high_level.cpp index ca15082bb..7422aed84 100644 --- a/src/tests/test_pkcs11_high_level.cpp +++ b/src/tests/test_pkcs11_high_level.cpp @@ -811,7 +811,7 @@ Test::Result test_rsa_encrypt_decrypt() }; std::vector<uint8_t> plaintext(256); - std::iota(std::begin(plaintext), std::end(plaintext), 0); + std::iota(std::begin(plaintext), std::end(plaintext), static_cast<uint8_t>(0)); encrypt_and_decrypt(plaintext, "Raw"); plaintext = { 0x00, 0x01, 0x02, 0x03, 0x04, 0x00 }; @@ -834,7 +834,7 @@ Test::Result test_rsa_sign_verify() PKCS11_RSA_KeyPair keypair = generate_rsa_keypair(test_session); std::vector<uint8_t> plaintext(256); - std::iota(std::begin(plaintext), std::end(plaintext), 0); + std::iota(std::begin(plaintext), std::end(plaintext), static_cast<uint8_t>(0)); auto sign_and_verify = [&keypair, &plaintext, &result](std::string const& emsa, bool multipart) { diff --git a/src/tests/test_tss.cpp b/src/tests/test_tss.cpp index 01e0da92f..d9e860726 100644 --- a/src/tests/test_tss.cpp +++ b/src/tests/test_tss.cpp @@ -28,7 +28,7 @@ class TSS_Tests : public Test Test::Result result("TSS"); uint8_t id[16]; - std::iota(id, id + sizeof(id), 0); + std::iota(id, id + sizeof(id), static_cast<uint8_t>(0)); const std::vector<uint8_t> S = Botan::hex_decode("7465737400"); |