Index: test/cctest/test-hashing.cc |
diff --git a/test/cctest/test-hashing.cc b/test/cctest/test-hashing.cc |
index e607e8496e3ec853dcbd8f1e2048748660dc72a1..5aca75a8eb19df045b7a9cfd7fbbc66112ea9b77 100644 |
--- a/test/cctest/test-hashing.cc |
+++ b/test/cctest/test-hashing.cc |
@@ -229,12 +229,12 @@ static uint32_t PseudoRandom(uint32_t i, uint32_t j) { |
TEST(StringHash) { |
if (env.IsEmpty()) env = v8::Context::New(); |
- for (int a = 0; a < String::kMaxOneByteCharCode; a++) { |
+ for (uint8_t a = 0; a < String::kMaxOneByteCharCode; a++) { |
// Numbers are hashed differently. |
if (a >= '0' && a <= '9') continue; |
- for (int b = 0; b < String::kMaxOneByteCharCode; b++) { |
+ for (uint8_t b = 0; b < String::kMaxOneByteCharCode; b++) { |
if (b >= '0' && b <= '9') continue; |
- check_twochars(static_cast<uint8_t>(a), static_cast<uint8_t>(b)); |
+ check_twochars(a, b); |
} |
} |
check(i::Vector<const char>("*", 1)); |