Index: crypto/sha2_unittest.cc |
=================================================================== |
--- crypto/sha2_unittest.cc (revision 98480) |
+++ crypto/sha2_unittest.cc (working copy) |
@@ -45,7 +45,7 @@ |
0xf2, 0x00, 0x15, 0xad }; |
std::string output1 = crypto::SHA256HashString(input1); |
- ASSERT_EQ(crypto::SHA256_LENGTH, output1.size()); |
+ ASSERT_EQ(static_cast<size_t>(crypto::SHA256_LENGTH), output1.size()); |
wtc
2011/08/26 21:20:53
Is this static_cast to size_t still necessary? It
Peter Kasting
2011/08/26 21:32:51
Yes.
wtc
2011/08/26 22:30:50
If we are not re-enabling the warning, then we sho
wtc
2011/08/29 20:44:32
I still want these two files (and the associated .
|
for (size_t i = 0; i < crypto::SHA256_LENGTH; i++) |
EXPECT_EQ(expected1[i], static_cast<uint8>(output1[i])); |
} |