aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_octetstring.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-10-01 06:51:06 -0400
committerJack Lloyd <[email protected]>2017-10-01 06:51:06 -0400
commit7b1fa2b7798264f2866eb80ca43181efddb66141 (patch)
tree9c24919a8b53e3baa5417ca7e7dac0883d0f8cc0 /src/tests/test_octetstring.cpp
parente58f66ae5f07f31419a819ded874fcf39aa1fdc6 (diff)
Fix some cast warnings from Sonar
Diffstat (limited to 'src/tests/test_octetstring.cpp')
-rw-r--r--src/tests/test_octetstring.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/tests/test_octetstring.cpp b/src/tests/test_octetstring.cpp
index 1010b5464..b9692559e 100644
--- a/src/tests/test_octetstring.cpp
+++ b/src/tests/test_octetstring.cpp
@@ -99,11 +99,13 @@ Test::Result test_equality()
{
Test::Result result("OctetString");
- Botan::OctetString os1("0000000000000000");
- Botan::OctetString os2("FFFFFFFFFFFFFFFF");
+ const Botan::OctetString os1("0000000000000000");
+ const Botan::OctetString os1_copy = os1;
+ const Botan::OctetString os2("FFFFFFFFFFFFFFFF");
+ const Botan::OctetString os2_copy = os2;
- result.confirm("OctetString equality operations works as expected", os1 == os1);
- result.confirm("OctetString equality operations works as expected", os2 == os2);
+ result.confirm("OctetString equality operations works as expected", os1 == os1_copy);
+ result.confirm("OctetString equality operations works as expected", os2 == os2_copy);
result.confirm("OctetString equality operations works as expected", os1 != os2);
return result;