Index: tests/FrontBufferedStreamTest.cpp |
diff --git a/tests/FrontBufferedStreamTest.cpp b/tests/FrontBufferedStreamTest.cpp |
index 6905bcda79a2f180c8239e9fc615a49b42f95c1a..cb11b12de8268e938de64691261a3346889f352f 100644 |
--- a/tests/FrontBufferedStreamTest.cpp |
+++ b/tests/FrontBufferedStreamTest.cpp |
@@ -195,7 +195,7 @@ private: |
static void test_length_combos(skiatest::Reporter* reporter, size_t bufferSize) { |
for (int hasLen = 0; hasLen <= 1; hasLen++) { |
for (int hasPos = 0; hasPos <= 1; hasPos++) { |
- LengthOptionalStream stream((bool) hasLen, (bool) hasPos); |
+ LengthOptionalStream stream(SkToBool(hasLen), SkToBool(hasPos)); |
SkAutoTUnref<SkStream> buffered(SkFrontBufferedStream::Create(&stream, bufferSize)); |
test_hasLength(reporter, *buffered.get(), stream); |
} |