diff --git a/tests/HashTest.cpp b/tests/HashTest.cpp index 24032a5ec5..3dd2df4e3c 100644 --- a/tests/HashTest.cpp +++ b/tests/HashTest.cpp @@ -41,7 +41,7 @@ DEF_TEST(HashMap, r) { REPORTER_ASSERT(r, map.count() == N); } -namespace { uint32_t hash_string(SkString s) { return s.size(); } } +namespace { uint32_t hash_string(SkString s) { return (uint32_t)s.size(); } } DEF_TEST(HashSet, r) { SkTHashSet set;