Index: tests/SerializationTest.cpp |
diff --git a/tests/SerializationTest.cpp b/tests/SerializationTest.cpp |
index b590fb5821001f4a492efc8c4e82b2c6bff190ef..15b73827ae2780470940a565100f8fe6ecab9380 100644 |
--- a/tests/SerializationTest.cpp |
+++ b/tests/SerializationTest.cpp |
@@ -42,7 +42,7 @@ |
writer.writeFlattenable(flattenable); |
} |
static void Read(SkValidatingReadBuffer& reader, T** flattenable) { |
- *flattenable = (T*)reader.readFlattenable(); |
+ *flattenable = (T*)reader.readFlattenable(T::GetFlattenableType()); |
} |
}; |